ClickHouse/tests/queries/0_stateless/03052_query_hash_includes_aliases.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
);