featurebase/sql3/planner
Seebs 10b60f5d51 set default epoch for timestamps in system tables
If we don't set an epoch, we get a cryptic message on the console.
Note, this message isn't logged properly, it doesn't use the
logger, it uses the `log` package.

	2023/02/09 11:07:23 ERROR: converting timestamp options for
	end_time: checking overflow: custom epoch too far from
	Unix epoch: 0001-01-01 00:00:00 +0000 UTC

Because this uses the log package, it doesn't go to the same place
as other messages, making it a pain to debug.

The underlying problem is that a timestamp can't just have a zero
value for its epoch. So, we set a default epoch of 0 Unix Time.

We should possibly revisit the question of whether the conversion
in the top-level schema.go should handle an epoch which IsZero,
but I'm not sure what "base" should be in that case. In practice,
all existing usages except this one are specifying time.Unix(0, 0)
already.
2023-02-15 14:34:51 -06:00
..
types introduce performance counters and system table fanout, plus refactor metrics (#2363) 2023-01-19 21:35:02 +00:00
compilealterdatabase.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compilealtertable.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compilebulkinsert.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compilecreatedatabase.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compilecreatetable.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compilecreateview.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compiledelete.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compiledropdatabase.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compiledroptable.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compiledropview.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compileinsert.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compileselect.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
compileshow.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
executionplanner.go (fb-1903) - Fix SQL Fanout error (#2248) 2023-02-14 10:54:15 -06:00
executionplannersystemtables.go set default epoch for timestamps in system tables 2023-02-15 14:34:51 -06:00
expression.go add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00
expression_it_test.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
expressionagg.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
expressionanalyzer.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
expressionanalyzercall.go FB-1862: Implement Str() scalar string function (#2215) 2023-02-14 15:58:36 -05:00
expressionpql.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
expressiontypes.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
inbuiltfunctionsdate.go implemented extract ddl; tightened up type related stuff (#2329) 2022-12-12 09:01:20 -08:00
inbuiltfunctionsset.go cleaned up sync from private repo 2022-09-30 11:20:58 -07:00
inbuiltfunctionsstring.go FB-1862: Implement Str() scalar string function (#2215) 2023-02-14 15:58:36 -05:00
inbuiltfunctionstable.go added testify dependency 2022-09-30 11:31:37 -07:00
main_test.go added testify dependency 2022-09-30 11:31:37 -07:00
opalterdatabase.go CLI: make it more like psql (#2235) 2023-02-14 09:23:51 -06:00
opaltertable.go Sync from private repo to commit 12d608c80d 2022-12-12 09:01:20 -08:00
opalterview.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
opbulkinsert.go handle empty strings as nulls for CSV (except for string types) (#2246) 2023-02-13 17:02:04 -06:00
opcreatedatabase.go Support for setting individual DatabaseOptions (#2231) 2023-02-06 08:50:28 -06:00
opcreatetable.go fix import paths and import cycles 2023-01-12 00:31:14 +00:00
opcreateview.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
opdistinct.go Sup 294 pre sort command (#2209) 2023-01-23 12:26:38 -06:00
opdropdatabase.go Support for setting individual DatabaseOptions (#2231) 2023-02-06 08:50:28 -06:00
opdroptable.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
opdropview.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
opfanout.go introduce performance counters and system table fanout, plus refactor metrics (#2363) 2023-01-19 21:35:02 +00:00
opfeaturebasecolumns.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
opfeaturebasedatabases.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
opfeaturebasetables.go Database isolation: Balancer (#2407) 2023-01-19 22:10:08 +00:00
opfilter.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
opgroupby.go fix import paths and import cycles 2023-01-12 00:31:14 +00:00
ophaving.go fix import paths 2023-01-11 18:59:24 +00:00
opinsert.go Use the correct epoch when converting field.Options.Base to timestamp (#2241) 2023-02-10 17:13:09 -06:00
opnestedloops.go hand comma version of inner join (#2221) 2023-01-25 13:37:05 -06:00
opnulltable.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
oporderby.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
oppqlaggregate.go timestamp fixes (#2224) 2023-01-25 14:07:15 -06:00
oppqldelete.go fix import paths 2023-01-11 18:59:24 +00:00
oppqldistinctscan.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
oppqlfiltereddelete.go fix import paths 2023-01-11 18:59:24 +00:00
oppqlgroupby.go fix import paths and import cycles 2023-01-12 00:31:14 +00:00
oppqlmultiaggregate.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
oppqlmultigroupby.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
oppqltablescan.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
oppqltruncate.go fix typo in file name 2023-02-15 14:34:51 -06:00
opprojection.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
opquery.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
oprelalias.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
opsubquery.go fix import paths and import cycles 2023-01-12 00:31:14 +00:00
opsystemtable.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
optablevaluedfunction.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
optop.go implemented DISTINCT (fb-1562) (#2388) 2023-01-10 23:28:00 +00:00
planoptimizer.go fixed issue with interplay between count(*) and _id column (#2250) 2023-02-14 18:40:15 -06:00
planwalker.go Implement DELETE (fb 1557) (#2382) 2023-01-10 23:25:08 +00:00
systemobjects.go Get rid of *most* of the context.Background() references in sql3 package (#2238) 2023-02-10 13:40:46 -06:00
wireprotocol.go introduce performance counters and system table fanout, plus refactor metrics (#2363) 2023-01-19 21:35:02 +00:00