Nikita Fomichev 2024-04-03 10:03:47 +02:00
parent 6805103ce3
commit 809461ccda
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
-- https://github.com/ClickHouse/ClickHouse/issues/22627
WITH
x AS
(
SELECT 1 AS a
),
xx AS
(
SELECT *
FROM x
, x AS x1
, x AS x2
)
SELECT *
FROM xx
WHERE a = 1;