Is your feature request related to a problem or challenge?
part of #22710
Now the aggregation planning is implemented with a list of rules:
|
if self.should_use_ordered_partial_aggregate_stream(context) { |
After the refactor in the EPIC is done, we could probably clean them up into a simpler form.
A related idea is to add a better top-level specification for aggregation planning, to better describe this code. Currently, the comment at the top of the file explains the planning logic, but only at the level of intuition and high-level ideas.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
Is your feature request related to a problem or challenge?
part of #22710
Now the aggregation planning is implemented with a list of rules:
datafusion/datafusion/physical-plan/src/aggregates/mod.rs
Line 1189 in bbb552f
After the refactor in the EPIC is done, we could probably clean them up into a simpler form.
A related idea is to add a better top-level specification for aggregation planning, to better describe this code. Currently, the comment at the top of the file explains the planning logic, but only at the level of intuition and high-level ideas.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response