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

Expose buffer operations #808

Closed
bjchambers opened this issue Sep 27, 2021 · 0 comments · Fixed by #809
Closed

Expose buffer operations #808

bjchambers opened this issue Sep 27, 2021 · 0 comments · Fixed by #809
Labels
enhancement Any new improvement worthy of a entry in the changelog

Comments

@bjchambers
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

I'd like to take the bitwise and (or) of sliced buffers without needing to materialize the offsets. This can be achieved within Arrow using buffer_bin_and (buffer_bin_or), but those methods are not exposed.

It should be possible to use bit_slice to slice a buffer and then apply them, but (1) if the offset is not aligned it needs to materialize the resulting buffer and (2) if the offset is aligned it doesn't work due to #807.

Describe the solution you'd like
Expose the buffer_bin_and, buffer_bin_or and other possibly useful methods for working with buffers.

Describe alternatives you've considered

Using bit_slice and &, but that has the problems as noted.

Additional context
Add any other context or screenshots about the feature request here.

@bjchambers bjchambers added the enhancement Any new improvement worthy of a entry in the changelog label Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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