ARROW-12728: [C++] Implement count_distinct/distinct hash aggregate kernels#10876
Closed
lidavidm wants to merge 11 commits intoapache:masterfrom
Closed
ARROW-12728: [C++] Implement count_distinct/distinct hash aggregate kernels#10876lidavidm wants to merge 11 commits intoapache:masterfrom
lidavidm wants to merge 11 commits intoapache:masterfrom
Conversation
Member
Author
|
Actually, if we want to keep the |
Member
Author
|
Changed to use Take() to assemble the final results instead of Concatenate(). |
bkietz
requested changes
Aug 18, 2021
Member
bkietz
left a comment
There was a problem hiding this comment.
Overall this looks good, just a few high level comments and nits
Member
There was a problem hiding this comment.
@michalursa what do you think of adding Grouper::Reserve(additional_capacity_hint)?
Member
Author
There was a problem hiding this comment.
The keys here are pairs of [value, group_id] so just having the number of groups doesn't give much of a capacity hint.
bkietz
approved these changes
Aug 20, 2021
Member
|
@lidavidm needs rebase |
Member
Author
|
Rebased, thanks for the heads up. |
pitrou
reviewed
Aug 25, 2021
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This reuses the Grouper to add kernels for count_distinct and distinct. The implementation for distinct is very simple and not particularly efficient, leveraging Concatenate to build the output list. Neither kernel handles larger-than-memory processing.