Add a test for #10102

This commit is contained in:
Alexey Milovidov 2020-06-26 23:44:08 +03:00
parent 6d6ea4249c
commit f1f048ac87
2 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,2 @@
2020-04-07
2020-04-07

View File

@ -0,0 +1,6 @@
DROP TABLE IF EXISTS index;
CREATE TABLE index (d Date) ENGINE = MergeTree ORDER BY d;
INSERT INTO index VALUES ('2020-04-07');
SELECT * FROM index WHERE d > toDateTime('2020-04-06 23:59:59');
SELECT * FROM index WHERE identity(d > toDateTime('2020-04-06 23:59:59'));
DROP TABLE index;