ClickHouse/tests/queries/0_stateless/02387_parse_date_as_datetime.sql
Alexey Milovidov 2faa23112c Fix test
2022-08-22 00:39:06 +02:00

14 lines
497 B
SQL

CREATE TEMPORARY TABLE test (`i` Int64, `d` DateTime);
INSERT INTO test FORMAT JSONEachRow {"i": 123, "d": "2022-05-03"};
INSERT INTO test FORMAT JSONEachRow {"i": 456, "d": "2022-05-03 01:02:03"};
SELECT * FROM test ORDER BY i;
DROP TABLE test;
CREATE TEMPORARY TABLE test (`i` Int64, `d` DateTime64);
INSERT INTO test FORMAT JSONEachRow {"i": 123, "d": "2022-05-03"};
INSERT INTO test FORMAT JSONEachRow {"i": 456, "d": "2022-05-03 01:02:03"};
SELECT * FROM test ORDER BY i;
DROP TABLE test;