-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Avoid adding redundant SubqueryAlias. #4412
Conversation
I think SubqueryAlias is just temp struct in the plan tree for scoping names. The SubqueryAlias should be removed totally from the plan tree at an early phase of the logical planing by modifying the inner plan's qualify names. |
In physical plan, there is no SubqueryAlias either. I think SubqueryAlias can be remove earlier to simply other logical rules. |
Look like we can add it in planner. When we add I don't have much preference for these two options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR seems like an improvement to me -- we can further improve things in follow on PRs -- thanks @jackwener
wait for merge it. I am curious about why we product the redundant |
Converting to a draft so we don't accidentally merge it |
More optimization #4484 (comment) I will try to do include #4484 (comment) It's from comment @mingmwang in #4484 |
I wonder if this PR is still relevant |
I should close it😂. |
Which issue does this PR close?
Closes #4383.
Rationale for this change
What changes are included in this PR?
Merge SubqueryAlias.
Are these changes tested?
test
Are there any user-facing changes?