This commit is contained in:
chloro 2024-07-10 22:12:15 +08:00
parent 1846705497
commit 1ac2933d7d
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,2 @@
2020-01-01
2020-01-02

View File

@ -0,0 +1,12 @@
SET allow_experimental_analyzer=1;
CREATE OR REPLACE TABLE foo (i Date) ENGINE MergeTree ORDER BY i;
INSERT INTO foo VALUES ('2020-01-01');
INSERT INTO foo VALUES ('2020-01-02');
SET optimize_min_equality_disjunction_chain_length = 3;
SELECT *
FROM foo
WHERE (foo.i = parseDateTimeBestEffort('2020-01-01'))
OR (foo.i = parseDateTimeBestEffort('2020-01-02'))
OR (foo.i = parseDateTimeBestEffort('2020-01-03'))
ORDER BY foo.i ASC