Added a test from #5131

This commit is contained in:
Alexey Milovidov 2020-06-26 23:49:25 +03:00
parent f1f048ac87
commit 7a07f86e37
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1 @@
2019-04-26 00:00:00

View File

@ -0,0 +1,5 @@
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;