ClickHouse/tests/queries/0_stateless/03171_condition_pushdown.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
439 B
MySQL
Raw Normal View History

2024-06-14 09:50:52 +00:00
-- This query succeeds only if it is correctly optimized.
2024-07-12 12:49:26 +00:00
SET enable_analyzer = 1;
2024-06-14 09:50:52 +00:00
SELECT * FROM (SELECT * FROM numbers(1e19)) AS t1, (SELECT * FROM numbers(1e19)) AS t2 WHERE t1.number IN (123, 456) AND t2.number = t1.number ORDER BY ALL;
-- Still TODO:
-- SELECT * FROM (SELECT * FROM numbers(1e19)) AS t1, (SELECT * FROM numbers(1e19)) AS t2 WHERE t1.number IN (SELECT 123 UNION ALL SELECT 456) AND t2.number = t1.number ORDER BY ALL;