-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-12613] [SQL] Outer Join Elimination by Parent Join Condition #10566
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
Closed
gatorsmile
wants to merge
35
commits into
apache:master
from
gatorsmile:OuterJoinEliminationByParentJoinPredicate
Closed
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
01e4cdf
Merge remote-tracking branch 'upstream/master'
gatorsmile 6835704
Merge remote-tracking branch 'upstream/master'
gatorsmile 9180687
Merge remote-tracking branch 'upstream/master'
gatorsmile b38a21e
SPARK-11633
gatorsmile d2b84af
Merge remote-tracking branch 'upstream/master' into joinMakeCopy
gatorsmile fda8025
Merge remote-tracking branch 'upstream/master'
gatorspark ac0dccd
Merge branch 'master' of https://github.com/gatorsmile/spark
gatorspark 6e0018b
Merge remote-tracking branch 'upstream/master'
0546772
converge
gatorsmile b37a64f
converge
gatorsmile bde74f8
Merge remote-tracking branch 'upstream/master' into OuterJoinEliminat…
gatorsmile e18ba75
Merge remote-tracking branch 'upstream/master' into OuterJoinEliminat…
gatorsmile d6a6e9c
outer join elimination by parent join.
gatorsmile c2a872c
Merge remote-tracking branch 'upstream/master'
gatorsmile ab6dbd7
Merge remote-tracking branch 'upstream/master'
gatorsmile 4276356
Merge remote-tracking branch 'upstream/master'
gatorsmile 2dab708
Merge remote-tracking branch 'upstream/master'
gatorsmile 0458770
Merge remote-tracking branch 'upstream/master'
gatorsmile 1debdfa
Merge remote-tracking branch 'upstream/master'
gatorsmile 763706d
Merge remote-tracking branch 'upstream/master'
gatorsmile 4de6ec1
Merge remote-tracking branch 'upstream/master'
gatorsmile 9422a4f
Merge remote-tracking branch 'upstream/master'
gatorsmile 52bdf48
Merge remote-tracking branch 'upstream/master'
gatorsmile 1e95df3
Merge remote-tracking branch 'upstream/master'
gatorsmile fab24cf
Merge remote-tracking branch 'upstream/master'
gatorsmile 8b2e33b
Merge remote-tracking branch 'upstream/master'
gatorsmile 2ee1876
Merge remote-tracking branch 'upstream/master'
gatorsmile b9f0090
Merge remote-tracking branch 'upstream/master'
gatorsmile ade6f7e
Merge remote-tracking branch 'upstream/master'
gatorsmile 9fd63d2
Merge remote-tracking branch 'upstream/master'
gatorsmile 5199d49
Merge remote-tracking branch 'upstream/master'
gatorsmile 404214c
Merge remote-tracking branch 'upstream/master'
gatorsmile c001dd9
Merge remote-tracking branch 'upstream/master'
gatorsmile 4c657fd
integrate it into the existing outer-join elimination.
gatorsmile 1a9ebdf
integrate it into the existing outer-join elimination.
gatorsmile File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
outer join elimination by parent join.
- Loading branch information
commit d6a6e9cc31b0f7547b35cf25884135ea65b03676
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
As I commented on the other PR, I think we should have a more general way to infer null propagation / filtering. Maybe you can discuss with @sameeragarwal and then update these PRs after his machinery is available.
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.
Sure, will do. Thank you!
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.
@gatorsmile similar to #10566, I think we should now be just able to apply this optimization rule more generally along the lines of:
Thanks!
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.
Sure, will do the changes. Thank you!
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.
@sameeragarwal Unfortunately, they are unable to share the same
buildNewJoinfunction.For example, if the parent join is full outer, the parent join will not have any
IsNotNullconstraint. In the current constraint propagation, itsconstraintsisSet.empty[Expression]. However, the join condition of this parent join still can be used for outer join elimination of the child join.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.
Let me do the outer join elimination by
Filterat first. That one can directly use the existing infrastructure of constraint propagation. #10567 Thanks!