crepererum commented on code in PR #4651:
URL: https://github.com/apache/arrow-datafusion/pull/4651#discussion_r1050552123
##########
datafusion/core/src/physical_plan/aggregates/hash.rs:
##########
@@ -498,14 +502,26 @@ fn create_batch_from_map(
}
}
+ // make group states mutable
+ let (mut group_by_values_vec, mut accumulator_set_vec): (Vec<_>, Vec<_>) =
+ accumulators
+ .group_states
+ .into_iter()
+ .map(|group_state| {
+ (
+ VecDeque::from(group_state.group_by_values.to_vec()),
Review Comment:
Relevant code:
https://github.com/rust-lang/rust/blob/a803f313fdf8f6eb2d674d7dfb3694a2b437ee1e/library/alloc/src/collections/vec_deque/mod.rs#L2833-L2880
--
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]