korowa commented on code in PR #11627:
URL: https://github.com/apache/datafusion/pull/11627#discussion_r1760066441
##########
datafusion/physical-plan/src/aggregates/row_hash.rs:
##########
@@ -365,6 +459,36 @@ impl GroupedHashAggregateStream {
merging_group_by:
PhysicalGroupBy::new_single(agg_group_by.expr.clone()),
};
+ // Skip aggregation is supported if:
+ // - aggregation mode is Partial
+ // - input is not ordered by GROUP BY expressions,
+ // since Final mode expects unique group values as its input
Review Comment:
Thank you for catching this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]