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

CTE queries with 'UNION' are parsed as 'non-select.' #25278

Closed
mapledan opened this issue Sep 13, 2023 · 3 comments
Closed

CTE queries with 'UNION' are parsed as 'non-select.' #25278

mapledan opened this issue Sep 13, 2023 · 3 comments
Assignees

Comments

@mapledan
Copy link
Contributor

mapledan commented Sep 13, 2023

The commit #25014 will cause SQL parsing errors.
The following statement is an invalid select statement:
with base as(select id from table1 union all select id from table2) select * from base

image
@mapledan
Copy link
Contributor Author

It's duplicate #25266.

@sfirke
Copy link
Member

sfirke commented Sep 13, 2023

tagging @betodealmeida who reviewed the PR you linked (thanks for finding that!)

@betodealmeida
Copy link
Member

Fixed in #25290

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants