Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Currently the implementation of HashAggregate in the new physical plan uses the same logic regardless of whether a grouping expression is used.
For the case where there is no grouping expression, such as "SELECT SUM(a) FROM b" we can use the compute kernels to perform an aggregate operation on each batch rather than iterating over each row and accumulating individual values.
This optimization already exists in the original implementation of aggregate queries direct from the logical plan.
Attachments
Issue Links
- links to