Add test for #4113

This commit is contained in:
Alexey Milovidov 2021-06-13 23:52:35 +03:00
parent b40f83cd21
commit 79b21caa28
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1 @@
1

View File

@ -0,0 +1,11 @@
DROP TABLE IF EXISTS t;
CREATE TABLE t (d Date, z UInt32) ENGINE = MergeTree(d, (z), 1);
INSERT INTO t VALUES ('2017-01-01', 1);
WITH (d < '2018-01-01') AND (d < '2018-01-02') AS x
SELECT 1
FROM t
WHERE x;
DROP TABLE t;