Nikita Fomichev 2024-04-03 14:37:58 +02:00
parent ef0a9e889f
commit 8ae1f4c4b3
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,51 @@
-- https://github.com/ClickHouse/ClickHouse/issues/29734
SELECT *
FROM
(
SELECT 1 AS x
) AS a
INNER JOIN
(
SELECT
1 AS x,
2 AS y
) AS b ON (a.x = b.x) AND (a.y = b.y); -- { serverError UNKNOWN_IDENTIFIER }
SELECT *
FROM
(
SELECT 1 AS x
) AS a
INNER JOIN
(
SELECT
1 AS x,
2 AS y
) AS b ON (a.x = b.x) AND (a.y = b.y)
INNER JOIN
(
SELECT 3 AS x
) AS c ON a.x = c.x; -- { serverError UNKNOWN_IDENTIFIER }
SELECT *
FROM
(
SELECT number AS x
FROM numbers(10)
) AS a
INNER JOIN
(
SELECT
number AS x,
number AS y
FROM numbers(10)
) AS b ON (a.x = b.x) AND (a.y = b.y)
INNER JOIN
(
SELECT number AS x
FROM numbers(10)
) AS c ON a.x = c.x; -- { serverError UNKNOWN_IDENTIFIER }