-
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
Add support for non-correlated subqueries #3266
Comments
FYI this should not be super-hard. I actually started adding uncorrelated support, and there is even an example of it here. CC @DaltonModlin |
When this works, q15 in the TPCH benchmark should work as well. |
I'll take a look into this issue as I'm currently trying to fix q15 for TPCH benchmarks. |
I think there are three things preventing q15 from working:
2 & # 3 could be worked on independently I believe. |
4 things! We need the PR for drop view #3267 to be merged in too for q15. :) I can take a stab at this issue, but I wouldn't care if someone came up with a competing patch .. plan optimization is totally new to me so I'm not sure how successful I'll be over what timeframe. |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I would like to be able to run this query:
It currently fails with:
This is because the existing subquery optimizer rules fail to rewrite the query.
It should be possible to rewrite the query as a join:
Describe the solution you'd like
☝️
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: