joroKr21 opened a new issue, #11591: URL: https://github.com/apache/datafusion/issues/11591
### Is your feature request related to a problem or challenge? For some group accumulators it would be necessary to check if the previous value was `null` explicitly. E.g. consider implementing `GroupsAccumulator` for `FirstValue`. One could explicitly store the `null` state of all groups but if we already use `NullState` it would make sense to reuse it for null checking as well. ### Describe the solution you'd like Add a public `NullState::is_null` method that takes and index and returns `bool`. ### Describe alternatives you've considered The alternative is to store a duplicate null state (e.g. as a `NullBufferBuilder`) in the groups accumulator but that is more wasteful. ### Additional context _No response_ -- 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.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