Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicated CTE names are allowed #12513

Closed
xxchan opened this issue Sep 25, 2023 · 3 comments
Closed

duplicated CTE names are allowed #12513

xxchan opened this issue Sep 25, 2023 · 3 comments
Assignees
Labels
no-issue-activity type/bug Something isn't working
Milestone

Comments

@xxchan
Copy link
Member

xxchan commented Sep 25, 2023

Describe the bug

dev=> with cte1 as (select 42), cte1 as (select 43) select * FROM cte1;
 ?column? 
----------
       43
(1 row)

Error message/log

No response

To Reproduce

No response

Expected behavior

error: WITH query name "cte1" specified more than once

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

found in #5987

@xxchan xxchan added the type/bug Something isn't working label Sep 25, 2023
@github-actions github-actions bot added this to the release-1.3 milestone Sep 25, 2023
@xxchan
Copy link
Member Author

xxchan commented Sep 25, 2023

It seems this occurs after supporting #7212

# refer to same-named CTE in a subquery expression
query I
with cte as (Select i as j from a) select * from cte where j = (with cte as (select max(j) as j from cte) select j from cte);
----
42

Copy link
Contributor

This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned.

@xxchan
Copy link
Member Author

xxchan commented Oct 17, 2024

Not very harmful, so leave for the future

@xxchan xxchan closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant