adriangb commented on code in PR #20019:
URL: https://github.com/apache/datafusion/pull/20019#discussion_r2743307072
##########
datafusion/physical-plan/src/aggregates/mod.rs:
##########
@@ -155,7 +172,21 @@ impl AggregateMode {
AggregateMode::Partial
| AggregateMode::Single
| AggregateMode::SinglePartitioned => true,
- AggregateMode::Final | AggregateMode::FinalPartitioned => false,
+ AggregateMode::Final
+ | AggregateMode::FinalPartitioned
+ | AggregateMode::PartialReduce => false,
+ }
+ }
+
+ /// Checks whether this aggregation step produces final output values
+ /// (as opposed to intermediate accumulator state).
+ pub fn is_last_stage(&self) -> bool {
Review Comment:
Ping on this before we move to merge
--
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]