-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-9703] [SQL] Refactor EnsureRequirements to avoid certain unnecessary shuffles #7988
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
22 commits
Select commit
Hold shift + click to select a range
2dfc648
Add failing test illustrating bad exchange planning.
JoshRosen cc5669c
Adding outputPartitioning to Repartition does not fix the test.
JoshRosen 0675956
Preserving ordering and partitioning in row format converters also do…
JoshRosen adcc742
Move test to PlannerSuite.
JoshRosen c9fb231
Rewrite exchange to fix better handle this case.
JoshRosen c628daf
Revert accidental ExchangeSuite change.
JoshRosen 752b8de
style fix
JoshRosen 2e0f33a
Write a more generic test for EnsureRequirements.
JoshRosen 5172ac5
Add test for requiresChildrenToProduceSameNumberOfPartitions.
JoshRosen 0725a34
Small assertion cleanup.
JoshRosen a1c12b9
Add failing test to demonstrate allCompatible bug
JoshRosen 4f08278
Fix the test by adding the compatibility check to EnsureRequirements
JoshRosen 8dbc845
Add even more tests.
JoshRosen 06aba0c
Add more comments
JoshRosen 642b0bb
Further expand comment / reasoning
JoshRosen fee65c4
Further refinement to comments / reasoning
JoshRosen 2c7e126
Merge remote-tracking branch 'origin/master' into exchange-fixes
JoshRosen 18cddeb
Rename DummyPlan to DummySparkPlan.
JoshRosen 1307c50
Update conditions for requiring child compatibility.
JoshRosen 8784bd9
Giant comment explaining compatibleWith vs. guarantees
JoshRosen 0983f75
More guarantees vs. compatibleWith cleanup; delete BroadcastPartition…
JoshRosen 38006e7
Rewrite EnsureRequirements _yet again_ to make things even simpler
JoshRosen 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
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.
Nit: we can use
forallinstead ofmaphere and remove theforallat the end.