mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
10 lines
344 B
SQL
10 lines
344 B
SQL
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');
|