-
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
Support rewriting subquery expressions in simplify_expressions
#3770
Labels
Comments
Do we need to consider the schema infomation of the parent query when optimizing the subquery? |
eejbyfeldt
added a commit
to eejbyfeldt/datafusion
that referenced
this issue
Oct 22, 2024
This patch makes it so that rules the configure an `apply_order` will also include subqueries in their traversel. This is a step twoards being able to run TPC-DS q41 (apache#4763) which has an expressions that needs simplification before we can decorrelate the subquery. This closes apache#3770 and maybe apache#2480
eejbyfeldt
added a commit
to eejbyfeldt/datafusion
that referenced
this issue
Oct 22, 2024
This patch makes it so that rules the configure an `apply_order` will also include subqueries in their traversel. This is a step twoards being able to run TPC-DS q41 (apache#4763) which has an expressions that needs simplification before we can decorrelate the subquery. This closes apache#3770 and maybe apache#2480
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
PR #3764 reverts a regression in optimizing subqueries but does so by running
simplify_expressions
a second time, after subqueries have been converted to joins.This is not the ideal solution.
Describe the solution you'd like
simplify_expressions
should rewrite subqueries instead. This will support all subqueries, not just the ones that can be converted to joins.Describe alternatives you've considered
None
Additional context
See conversation #3764 (comment)
The text was updated successfully, but these errors were encountered: