-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add PrimitiveDistinctCountGroupsAccumulator
#15985
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
base: main
Are you sure you want to change the base?
Add PrimitiveDistinctCountGroupsAccumulator
#15985
Conversation
…thub.com:Dandandan/arrow-datafusion into implement_primitive_distinct_groups_accumulator
PrimitiveDistinctCountGroupsAccumulator
PrimitiveDistinctCountGroupsAccumulator
, speed up PrimitiveDistinctCountAccumulator
1738b0b
to
a86e804
Compare
PrimitiveDistinctCountGroupsAccumulator
, speed up PrimitiveDistinctCountAccumulator
PrimitiveDistinctCountGroupsAccumulator
cb9cc84
to
a86e804
Compare
5e14c73
to
ee69484
Compare
This gets a small performance boost on clickbench query 9 (~9% on my end). I am actually wondering if we can do further. I think we could store something like "Obvious" advantage is that we avoid creating many hashsets for high cardinality cases which makes performance and memory usage bad. However it seems kind of tricky of how to integrate it in the current groupsaccumulator setup 🤔 |
Which issue does this PR close?
Rationale for this change
Speed up queries with group by + distinct count, for primitives.
The original code is taken from @waynexia + the change to use
HashTable
.What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?