alamb commented on code in PR #11592: URL: https://github.com/apache/datafusion/pull/11592#discussion_r1686464191
########## 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: I don't understand this comment 🤔 -- 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