Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
alamb opened this issue Oct 28, 2022 · 0 comments · Fixed by #2957
Closed

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

alamb opened this issue Oct 28, 2022 · 0 comments · Fixed by #2957
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog

Comments

@alamb
Copy link
Contributor

alamb commented Oct 28, 2022

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)

@alamb alamb added arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog labels Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate enhancement Any new improvement worthy of a entry in the changelog
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant