-
Notifications
You must be signed in to change notification settings - Fork 29k
[WIP][SPARK-19712][SQL] Move PullupCorrelatedPredicates and RewritePredicateSubquery after OptimizeSubqueries #17520
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
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
b988651
[SPARK-16804][SQL] Correlated subqueries containing LIMIT return inco…
nsyca 069ed8f
[SPARK-16804][SQL] Correlated subqueries containing LIMIT return inco…
nsyca edca333
New positive test cases
nsyca 64184fd
Fix unit test case failure
nsyca 29f82b0
blocking TABLESAMPLE
nsyca ac43ab4
Fixing code styling
nsyca 631d396
Correcting Scala test style
nsyca 7eb9b2d
One (last) attempt to correct the Scala style tests
nsyca 1387cf5
Merge remote-tracking branch 'upstream/master'
nsyca 648afac
Merge remote-tracking branch 'upstream/master'
nsyca dfd476d
Merge remote-tracking branch 'upstream/master'
nsyca 9e1c18c
Merge remote-tracking branch 'upstream/master'
nsyca bc4fe93
Move PullupCorrelatedPredicates and RewritePredicateSubquery after Op…
nsyca dc3aa7e
Merge remote-tracking branch 'upstream/master'
nsyca 380d5d7
Merge branch 'master' into phase2-1-clean
nsyca 208f384
This commit works on 3 things:
nsyca a86f18b
Add LeftSemi/LeftAnti's constraints
nsyca fe89f35
Revert back QueryPlan.scala and fix FilterPushdownSuite
nsyca f078309
Clean up and add LeftSemi/Anti pushdown on empty joinCond
nsyca 2479bcd
Fix bug in Join over Project that breaks LeftSemiOrAntiPushdownSuite …
nsyca bb8fad9
Update IN subquery pushdown test case
nsyca 4aaab02
Fix merge conflict
nsyca 0bab4fd
Fix test failure HiveCompatibilitySuite/subquery_in_having
nsyca 2081fac
Handle Aggregate/Window/Union under LeftSemi/Anti and new test cases
nsyca 8b36213
Merge remote-tracking branch 'upstream/master'
nsyca f3c7851
Merge branch 'master' into 19712-1
nsyca 9dc8969
resolve conflict
nsyca be19da1
Merge branch '19712-1' of https://github.com/nsyca/spark into 19712-1
nsyca b923bd5
Merge branch 'master' into 19712-1
nsyca 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
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
430 changes: 379 additions & 51 deletions
430
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
This is a new rewrite to convert the outer joins below LeftSemi/LeftAnti to an inner join (or left or right outer join in the case of the original full outer join). EXISTS/IN/NOT EXISTS subqueries are null-filtering predicates if the correlated predicates in the subquery are null-filtering.