joroKr21 commented on code in PR #11592:
URL: https://github.com/apache/datafusion/pull/11592#discussion_r1686495035


##########
datafusion/physical-expr-common/src/aggregate/groups_accumulator/accumulate.rs:
##########
@@ -324,6 +324,18 @@ impl NullState {
         }
     }
 
+    /// Check if the accumulated value for the group at the given `index` is 
valid,
+    /// meaning that there was at least one value passing the filter for this 
group.
+    pub fn is_valid(&self, index: usize) -> bool {
+        self.seen_values.get_bit(index)
+    }

Review Comment:
   Ideally `BooleanBufferBuilder::set_bit` should return the previous value and 
we can pass it along to the callback. That's in arrow I guess.



-- 
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-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to