mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-19 04:42:37 +00:00
33 lines
442 B
SQL
33 lines
442 B
SQL
-- https://github.com/ClickHouse/ClickHouse/pull/40065
|
|
SET allow_experimental_analyzer=1;
|
|
|
|
SELECT
|
|
(
|
|
SELECT
|
|
1 AS number,
|
|
number
|
|
FROM numbers(1)
|
|
) AS s,
|
|
(
|
|
SELECT
|
|
1,
|
|
number
|
|
FROM numbers(1)
|
|
) AS s2;
|
|
|
|
SELECT
|
|
(
|
|
SELECT
|
|
1 + 2 AS number,
|
|
1 + number AS b
|
|
FROM system.numbers
|
|
LIMIT 10, 1
|
|
),
|
|
(
|
|
SELECT
|
|
1 + 2 AS number2,
|
|
1 + number AS b
|
|
FROM system.numbers
|
|
LIMIT 10, 1
|
|
);
|