mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
12 lines
295 B
Plaintext
12 lines
295 B
Plaintext
|
-- { echoOn }
|
||
|
SELECT * FROM m PREWHERE a = 'OK' ORDER BY a;
|
||
|
OK
|
||
|
OK
|
||
|
SELECT * FROM m PREWHERE f = 1 ORDER BY a; -- { serverError ILLEGAL_PREWHERE }
|
||
|
SELECT * FROM m WHERE a = 'OK' SETTINGS optimize_move_to_prewhere=0;
|
||
|
OK
|
||
|
OK
|
||
|
SELECT * FROM m WHERE a = 'OK' SETTINGS optimize_move_to_prewhere=1;
|
||
|
OK
|
||
|
OK
|