ClickHouse/tests/queries/0_stateless/03033_cte_numbers_memory.sql

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

17 lines
540 B
MySQL
Raw Normal View History

-- https://github.com/ClickHouse/ClickHouse/issues/61238
2024-07-12 12:49:26 +00:00
SET enable_analyzer=1;
WITH
(SELECT number FROM system.numbers LIMIT 1) as w1,
(SELECT number FROM system.numbers LIMIT 1) as w2,
(SELECT number FROM system.numbers LIMIT 1) as w3,
(SELECT number FROM system.numbers LIMIT 1) as w4,
(SELECT number FROM system.numbers LIMIT 1) as w5,
(SELECT number FROM system.numbers LIMIT 1) as w6
SELECT number FROM (
SELECT number FROM system.numbers LIMIT 10
UNION ALL
SELECT number FROM system.numbers LIMIT 10
)
WHERE number < 5;