-
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
feat: Support spilling for hash aggregation #7400
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
9961558
Support spilling for hash aggregation
kazuyukitanimura d6a849f
Merge remote-tracking branch 'upstream/main' into agg-spill-pr
kazuyukitanimura 5dfa345
clippy
kazuyukitanimura 927cb85
Merge remote-tracking branch 'upstream/main' into agg-spill-pr
kazuyukitanimura ea38ad5
address review comments
kazuyukitanimura 0863e81
address review comments
kazuyukitanimura 9068e5f
address review comments
kazuyukitanimura 4b195f6
address review comments
kazuyukitanimura 985a90c
address review comments
kazuyukitanimura d9a77c8
address review comments
kazuyukitanimura aa1fc50
address review comments
kazuyukitanimura 6646776
address review comments
kazuyukitanimura b636a5e
address review comments
kazuyukitanimura b7d1a59
Merge remote-tracking branch 'upstream/main' into agg-spill-pr
kazuyukitanimura a7f4fee
a
kazuyukitanimura ff53e06
address review comments
kazuyukitanimura 25a9e5d
Merge remote-tracking branch 'upstream/main' into agg-spill-pr
kazuyukitanimura 2ead8b3
address review comments
kazuyukitanimura 113b263
Merge remote-tracking branch 'upstream/main' into agg-spill-pr
kazuyukitanimura 9a65b27
address review comments
kazuyukitanimura c8b4a10
address review comments
kazuyukitanimura 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 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 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 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 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 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.
@kazuyukitanimura Hi, do you remember why the result of
spill
is different from thenon-spill
one?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.
I think the reason is that we are comparing the output of a partial aggregate and when
spill
we also have a lower desired batch size and hit the emit early logic:datafusion/datafusion/physical-plan/src/aggregates/row_hash.rs
Lines 934 to 945 in 5b6b404
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.
That's right. When spilling happens, it means we don't have enough memory to hold original batch so we will do partial aggregation on smaller batch, different partial aggregation result will be but I think it doesn't change final aggregation result.