ClickHouse/tests/queries/0_stateless/01347_partition_date_vs_datetime.sql

6 lines
266 B
MySQL
Raw Normal View History

2020-06-26 20:49:25 +00:00
DROP TABLE IF EXISTS test_datetime;
CREATE TABLE test_datetime (time DateTime) ENGINE=MergeTree PARTITION BY time ORDER BY time;
INSERT INTO test_datetime (time) VALUES (toDate(18012));
SELECT * FROM test_datetime WHERE time=toDate(18012);
DROP TABLE test_datetime;