ClickHouse/tests/queries/0_stateless/01479_cross_join_9855.sql

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

10 lines
341 B
MySQL
Raw Normal View History

SET cross_to_inner_join_rewrite = 1;
2020-09-23 10:16:59 +00:00
SELECT count()
FROM numbers(4) AS n1, numbers(3) AS n2
2024-07-12 12:49:26 +00:00
WHERE n1.number > (select avg(n.number) from numbers(3) n) SETTINGS enable_analyzer=0;
2020-09-23 10:16:59 +00:00
SELECT count()
FROM numbers(4) AS n1, numbers(3) AS n2, numbers(6) AS n3
2024-07-12 12:49:26 +00:00
WHERE n1.number > (select avg(n.number) from numbers(3) n) SETTINGS enable_analyzer=0;