mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Fix tests
This commit is contained in:
parent
eb46f50993
commit
871f153433
@ -1,19 +1,17 @@
|
|||||||
-- { echo }
|
-- { echo }
|
||||||
SELECT toDateTime(-2, 2);
|
SELECT toTimeZone(toDateTime(-2, 2), 'Europe/Moscow');
|
||||||
1970-01-01 03:00:00.00
|
1970-01-01 03:00:00.00
|
||||||
SELECT toDateTime64(-2, 2);
|
SELECT toDateTime64(-2, 2, 'Europe/Moscow');
|
||||||
1970-01-01 03:00:00.00
|
1970-01-01 03:00:00.00
|
||||||
SELECT CAST(-1 AS DateTime64);
|
SELECT CAST(-1 AS DateTime64(0, 'Europe/Moscow'));
|
||||||
1970-01-01 03:00:00.000
|
1970-01-01 03:00:00
|
||||||
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64);
|
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64(0, 'Europe/Moscow'));
|
||||||
2020-01-01 00:00:00.300
|
2020-01-01 00:00:00
|
||||||
SELECT toDateTime64(bitShiftLeft(toUInt64(1),33), 2);
|
SELECT toDateTime64(bitShiftLeft(toUInt64(1), 33), 2, 'Europe/Moscow') FORMAT Null;
|
||||||
2106-02-07 09:28:15.00
|
SELECT toTimeZone(toDateTime(-2., 2), 'Europe/Moscow');
|
||||||
SELECT toDateTime(-2., 2);
|
|
||||||
1970-01-01 03:00:00.00
|
1970-01-01 03:00:00.00
|
||||||
SELECT toDateTime64(-2., 2);
|
SELECT toDateTime64(-2., 2, 'Europe/Moscow');
|
||||||
1970-01-01 03:00:00.00
|
1970-01-01 03:00:00.00
|
||||||
SELECT toDateTime64(toFloat32(bitShiftLeft(toUInt64(1),33)), 2);
|
SELECT toDateTime64(toFloat32(bitShiftLeft(toUInt64(1),33)), 2, 'Europe/Moscow');
|
||||||
2106-02-07 09:28:16.00
|
2106-02-07 09:00:00.00
|
||||||
SELECT toDateTime64(toFloat64(bitShiftLeft(toUInt64(1),33)), 2);
|
SELECT toDateTime64(toFloat64(bitShiftLeft(toUInt64(1),33)), 2, 'Europe/Moscow') FORMAT Null;
|
||||||
2106-02-07 09:28:15.00
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
-- { echo }
|
-- { echo }
|
||||||
SELECT toDateTime(-2, 2);
|
SELECT toTimeZone(toDateTime(-2, 2), 'Europe/Moscow');
|
||||||
SELECT toDateTime64(-2, 2);
|
SELECT toDateTime64(-2, 2, 'Europe/Moscow');
|
||||||
SELECT CAST(-1 AS DateTime64);
|
SELECT CAST(-1 AS DateTime64(0, 'Europe/Moscow'));
|
||||||
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64);
|
SELECT CAST('2020-01-01 00:00:00.3' AS DateTime64(0, 'Europe/Moscow'));
|
||||||
SELECT toDateTime64(bitShiftLeft(toUInt64(1),33), 2);
|
SELECT toDateTime64(bitShiftLeft(toUInt64(1), 33), 2, 'Europe/Moscow') FORMAT Null;
|
||||||
SELECT toDateTime(-2., 2);
|
SELECT toTimeZone(toDateTime(-2., 2), 'Europe/Moscow');
|
||||||
SELECT toDateTime64(-2., 2);
|
SELECT toDateTime64(-2., 2, 'Europe/Moscow');
|
||||||
SELECT toDateTime64(toFloat32(bitShiftLeft(toUInt64(1),33)), 2);
|
SELECT toDateTime64(toFloat32(bitShiftLeft(toUInt64(1),33)), 2, 'Europe/Moscow');
|
||||||
SELECT toDateTime64(toFloat64(bitShiftLeft(toUInt64(1),33)), 2);
|
SELECT toDateTime64(toFloat64(bitShiftLeft(toUInt64(1),33)), 2, 'Europe/Moscow') FORMAT Null;
|
||||||
|
Loading…
Reference in New Issue
Block a user