Add a test for #15784

This commit is contained in:
Alexey Milovidov 2021-03-22 23:04:07 +03:00
parent 2f5dbf57b6
commit 43c36462f0
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
1968
-473
1990-01-01

View File

@ -0,0 +1,4 @@
SELECT toYear(toDateTime64('1968-12-12 11:22:33', 0, 'UTC'));
SELECT toInt16(toRelativeWeekNum(toDateTime64('1960-11-30 18:00:11.999', 3, 'UTC')));
SELECT toStartOfQuarter(toDateTime64('1990-01-04 12:14:12', 0, 'UTC'));
SELECT toUnixTimestamp(toDateTime64('1900-12-12 11:22:33', 0, 'UTC')); -- { serverError 407 }