This commit is contained in:
Alexey Milovidov 2021-07-18 18:02:31 +03:00
parent eb134377b2
commit 4587ddaeeb
2 changed files with 4 additions and 10 deletions

View File

@ -1,9 +1,4 @@
-- { echo }
SELECT toString(toDateTime('-922337203.6854775808', 1));
1940-10-09 22:13:17.6 1940-10-09 22:13:17.6
SELECT toString(toDateTime('9922337203.6854775808', 1));
2283-11-11 23:46:43.6 2283-11-11 23:46:43.6
SELECT toDateTime64(CAST('10000000000.1' AS Decimal64(1)), 1);
2283-11-11 23:46:40.1 2283-11-11 23:46:40.1
SELECT toDateTime64(CAST('-10000000000.1' AS Decimal64(1)), 1);
1925-01-01 00:00:00.1 1925-01-01 00:00:00.1

View File

@ -1,5 +1,4 @@
-- { echo } SELECT toString(toDateTime('-922337203.6854775808', 1, 'Europe/Moscow'));
SELECT toString(toDateTime('-922337203.6854775808', 1)); SELECT toString(toDateTime('9922337203.6854775808', 1, 'Europe/Moscow'));
SELECT toString(toDateTime('9922337203.6854775808', 1)); SELECT toDateTime64(CAST('10000000000.1' AS Decimal64(1)), 1, 'Europe/Moscow');
SELECT toDateTime64(CAST('10000000000.1' AS Decimal64(1)), 1); SELECT toDateTime64(CAST('-10000000000.1' AS Decimal64(1)), 1, 'Europe/Moscow');
SELECT toDateTime64(CAST('-10000000000.1' AS Decimal64(1)), 1);