mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 03:22:14 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
16 lines
314 B
SQL
16 lines
314 B
SQL
SET enable_debug_queries = 1;
|
|
|
|
-- constant folding
|
|
|
|
ANALYZE SELECT 1 WHERE 1 = 0;
|
|
|
|
ANALYZE SELECT 1 WHERE 1 IN (0, 1, 2);
|
|
|
|
ANALYZE SELECT 1 WHERE 1 IN (0, 2) AND 2 = (SELECT 2);
|
|
|
|
-- no constant folding
|
|
|
|
ANALYZE SELECT 1 WHERE 1 IN ((SELECT arrayJoin([1, 2, 3])) AS subquery);
|
|
|
|
ANALYZE SELECT 1 WHERE NOT ignore();
|