Skip to content

[fix](Nereids) set operation syntax is not compatible with legacy planner#23820

Merged
xiaokang merged 1 commit intoapache:branch-2.0from
morrySnow:cte_com_2.0
Sep 5, 2023
Merged

[fix](Nereids) set operation syntax is not compatible with legacy planner#23820
xiaokang merged 1 commit intoapache:branch-2.0from
morrySnow:cte_com_2.0

Conversation

@morrySnow
Copy link
Contributor

@morrySnow morrySnow commented Sep 4, 2023

cherry-pick from master
PR #23668
commit-id 897151f

for example

WITH A AS (SELECT * FROM B)
SELECT * FROM C
UNION
SELECT * FROM D

the scope of CTE in Nereids is the first set oeprand. the scope of CTE in legacy planner is the whole statement.

Proposed changes

Issue Number: close #xxx

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...

…nner (apache#23668)

for example
```sql
WITH A AS (SELECT * FROM B)
SELECT * FROM C
UNION
SELECT * FROM D
```

the scope of CTE in Nereids is the first set oeprand.
the scope of CTE in legacy planner is the whole statement.
@xiaokang xiaokang merged commit 2b934dc into apache:branch-2.0 Sep 5, 2023
@morrySnow morrySnow deleted the cte_com_2.0 branch September 7, 2023 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments