You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/12/11 13:15:19 UTC
[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #4582: Remove `AggregateState` wrapper
alamb commented on code in PR #4582:
URL: https://github.com/apache/arrow-datafusion/pull/4582#discussion_r1045232124
##########
datafusion/core/src/physical_plan/aggregates/hash.rs:
##########
@@ -519,7 +519,7 @@ fn create_batch_from_map(
accumulators.group_states.iter().map(|group_state| {
group_state.accumulator_set[x]
.state()
- .and_then(|x| x[y].as_scalar().map(|v| v.clone()))
+ .map(|x| x[y].clone())
Review Comment:
removing the extra layer of indirection simplifies the code significantly
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org