test is added

This commit is contained in:
Yakov Olkhovskiy 2023-08-17 01:29:23 +00:00
parent 154b3a1ae4
commit 91929fb7e9
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
6 6 6

View File

@ -0,0 +1,9 @@
DROP TABLE IF EXISTS 02845_prewhere;
SET move_all_conditions_to_prewhere = 1;
CREATE TABLE 02845_prewhere ( e String, c String, q String ) ENGINE = MergeTree ORDER BY tuple();
INSERT INTO 02845_prewhere SELECT number, number, number from numbers(10);
SELECT * FROM (SELECT * FROM 02845_prewhere WHERE e = '5' OR q = '6') WHERE (q = '6');