Closed
Description
Is your feature request related to a problem or challenge?
@korowa added "skip partial aggregation mode" in #11627 which helps with high cardinality aggregates by doing minimal work for the first phase of the aggregation. This mode is triggered dynamically based on how effective the first aggregation phase is working.
In order to use this new mode, the corresponding GroupsAccumulator
needs to implement the convert_to_state
method
datafusion/datafusion/expr/src/groups_accumulator.rs
Lines 166 to 213 in c340b6a
Some aggregates implement the GroupsAccumulator interface directly, but by default they will use the GroupsAccumulatorAdapter
along with the Accumulator
trait
Describe the solution you'd like
Implement covert_to_state
for
Add tests in
Describe alternatives you've considered
No response
Additional context
No response