alamb commented on code in PR #6954:
URL: https://github.com/apache/arrow-datafusion/pull/6954#discussion_r1262835648
##########
datafusion/physical-expr/src/aggregate/groups_accumulator/accumulate.rs:
##########
@@ -139,10 +139,14 @@ impl NullState {
// no nulls, no filter,
(false, None) => {
let iter = group_indices.iter().zip(data.iter());
+
for (&group_index, &new_value) in iter {
- seen_values.set_bit(group_index, true);
value_fn(group_index, new_value);
}
+ // update seen values in separate loop
+ for &group_index in group_indices.iter() {
+ seen_values.set_bit(group_index, true);
Review Comment:
That is an excellent point. I will try and take that into account
--
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]