Skip to content

Optimized way to count the numbers of true and false values in a BooleanArray #2963

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I would like to generate statistics on how many rows pass a particular filter that was evaluated to BooleanArray

I know there are very fast ways to do this within the arrow codebase but I didn't see any good way to use them externally

Describe the solution you'd like
Optimized functions on BooleanArray

Describe alternatives you've considered
Use lower level Buffer apis

Additional context
apache/datafusion#3989 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions