mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 11:22:12 +00:00
52 lines
789 B
SQL
52 lines
789 B
SQL
-- https://github.com/ClickHouse/ClickHouse/issues/29734
|
|
SET enable_analyzer=1;
|
|
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 }
|