2019-10-27 18:12:40 +00:00
|
|
|
-- constant folding
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT 1 WHERE 1 = 0;
|
2019-10-27 18:12:40 +00:00
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT 1 WHERE 1 IN (0, 1, 2);
|
2019-10-27 18:12:40 +00:00
|
|
|
|
2021-02-11 07:30:08 +00:00
|
|
|
EXPLAIN SYNTAX SELECT 1 WHERE 1 IN (0, 2) AND 2 = ((SELECT 2) AS subquery);
|
2019-10-27 18:12:40 +00:00
|
|
|
|
|
|
|
-- no constant folding
|
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT 1 WHERE 1 IN ((SELECT arrayJoin([1, 2, 3])) AS subquery);
|
2019-10-27 18:12:40 +00:00
|
|
|
|
2020-11-02 12:47:12 +00:00
|
|
|
EXPLAIN SYNTAX SELECT 1 WHERE NOT ignore();
|