mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
add test
This commit is contained in:
parent
ff36dee2ec
commit
f2106f9683
@ -3,3 +3,11 @@ SELECT
|
||||
y
|
||||
FROM prewhere_move
|
||||
PREWHERE x > 100
|
||||
SELECT
|
||||
x1,
|
||||
x2,
|
||||
x3,
|
||||
x4
|
||||
FROM prewhere_move
|
||||
PREWHERE x1 > 100
|
||||
WHERE (x1 > 100) AND ((x2 > 100) AND (x3 > 100) AND (x4 > 100))
|
||||
|
@ -5,3 +5,11 @@ INSERT INTO prewhere_move SELECT number, toString(number) FROM numbers(1000);
|
||||
EXPLAIN SYNTAX SELECT * FROM prewhere_move WHERE x > 100;
|
||||
|
||||
DROP TABLE prewhere_move;
|
||||
|
||||
CREATE TABLE prewhere_move (x1 Int, x2 Int, x3 Int, x4 Int) ENGINE = MergeTree ORDER BY tuple();
|
||||
INSERT INTO prewhere_move SELECT number, number, number, number FROM numbers(1000);
|
||||
|
||||
-- Not all conditions moved
|
||||
EXPLAIN SYNTAX SELECT * FROM prewhere_move WHERE x1 > 100 AND x2 > 100 AND x3 > 100 AND x4 > 100;
|
||||
|
||||
DROP TABLE prewhere_move;
|
||||
|
Loading…
Reference in New Issue
Block a user