-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Common Table Expressions (CTE) inside WITH should have their own identifier scope #910
Comments
Are you planning on submitting a fix for this? :-) |
I wrote a some basic implementation of separate identifier scopes for CTE views and it fixes problem from #1374, but our current implementation of CTE has a lot of tricks. Some queries don't work because such tricks cannot work with my changes. When I'm trying to resolve failure in one place something else becomes broken. |
I recently resumed my work on this issue, but I had to remove support of non-standard constructions like |
Thank you @katzyn, I may be overly biased here since we use Please feel very welcome to push any kind of testing and support towards me, I will want to help you as good as I can. Allow me one question please: Why is the |
We have multiple problems with CTEs:
Materialization of derived tables, CTEs, etc. is another question. And it can't be performed unconditionally, we don't want to materialize something with 1,000,000,000 rows to use only 100 of them. |
Common Table Expressions inside WITH should have their own identifier scope. Currently they share the same scope as all other identifiers.
The text was updated successfully, but these errors were encountered: