Skip to content

Add NullState::is_null public method #11591

Description

@joroKr21

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions