alamb commented on code in PR #7242:
URL: https://github.com/apache/arrow-datafusion/pull/7242#discussion_r1292769515
##########
datafusion/core/src/physical_plan/aggregates/mod.rs:
##########
@@ -1128,10 +1137,37 @@ fn finalize_aggregation(
| AggregateMode::Single
| AggregateMode::SinglePartitioned => {
// merge the state to the final value
- accumulators
+ let res = accumulators
.iter()
- .map(|accumulator| accumulator.evaluate().map(|v|
v.to_array()))
- .collect::<Result<Vec<ArrayRef>>>()
+ .map(|accumulator|
+ {
+ println!("mode: {:?}", mode);
+ let res = accumulator.evaluate_v2();
Review Comment:
I wonder if you could do
```suggestion
let res = accumulator.evaluate()?;
res.to_array()
```
--
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]