ClickHouse/tests/queries/0_stateless/01734_datetime64_from_float.sql
Robert Schulze 385be7f528
Fix tests
2022-10-03 18:05:16 +00:00

23 lines
859 B
SQL

SELECT CAST(1111111111.222 AS DateTime64(3, 'Asia/Istanbul'));
SELECT toDateTime(1111111111.222, 3, 'Asia/Istanbul');
SELECT toDateTime64(1111111111.222, 3, 'Asia/Istanbul');
SELECT toDateTime64(0.0, 9, 'UTC') ;
SELECT toDateTime64(0, 9, 'UTC');
SELECT toDateTime64(-2200000000.0, 9, 'UTC'); -- 1900-01-01 < value
SELECT toDateTime64(-2200000000, 9, 'UTC');
SELECT toDateTime64(-2300000000.0, 9, 'UTC'); -- value < 1900-01-01
SELECT toDateTime64(-2300000000, 9, 'UTC');
SELECT toDateTime64(-999999999999.0, 9, 'UTC'); -- value << 1900-01-01
SELECT toDateTime64(-999999999999, 9, 'UTC');
SELECT toDateTime64(9200000000.0, 9, 'UTC'); -- value < 2262-04-11
SELECT toDateTime64(9200000000, 9, 'UTC');
SELECT toDateTime64(9300000000.0, 9, 'UTC'); -- { serverError 407 } # 2262-04-11 < value
SELECT toDateTime64(9300000000, 9, 'UTC'); -- { serverError 407 }