mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
This commit is contained in:
parent
edfdaee247
commit
19b1a8b68f
@ -0,0 +1 @@
|
||||
1234 1234 1234
|
17
tests/queries/0_stateless/03125_analyzer_CTE_two_joins.sql
Normal file
17
tests/queries/0_stateless/03125_analyzer_CTE_two_joins.sql
Normal file
@ -0,0 +1,17 @@
|
||||
-- https://github.com/ClickHouse/ClickHouse/issues/29748
|
||||
SET allow_experimental_analyzer=1;
|
||||
|
||||
create table events ( distinct_id String ) engine = Memory;
|
||||
|
||||
INSERT INTO events VALUES ('1234'), ('1');
|
||||
|
||||
WITH cte1 as (
|
||||
SELECT '1234' as x
|
||||
), cte2 as (
|
||||
SELECT '1234' as x
|
||||
)
|
||||
SELECT *
|
||||
FROM events AS events
|
||||
JOIN cte2 ON cte2.x = events.distinct_id
|
||||
JOIN cte1 ON cte1.x = cte2.x
|
||||
limit 1;
|
Loading…
Reference in New Issue
Block a user