featurebase/sql3
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
..
parser add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00
planner set default epoch for timestamps in system tables 2023-02-15 14:34:51 -06:00
test add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00
errors.go A bug fix roundup (#2242) 2023-02-13 12:28:34 -06:00
interfaces.go introduce performance counters and system table fanout, plus refactor metrics (#2363) 2023-01-19 21:35:02 +00:00
main_test.go added testify dependency 2022-09-30 11:31:37 -07:00
sql_complex_test.go add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00
sql_test.go add test coverage, fix bugs caught by added test coverage 2023-02-15 14:34:51 -06:00