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

Allow NullBuffer construction directly from array #6769

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

findepi
Copy link
Member

@findepi findepi commented Nov 21, 2024

Which issue does this PR close?

none

Rationale for this change

For convenience and API compatibility with Buffer.

What changes are included in this PR?

  • Allow NullBuffer::from(array)
  • Migrate code to use Buffer::from(array) where it results in shorter code

Are there any user-facing changes?

yes, new NullBuffer::from variant

Converting array to slice is not necessary, since the Buffer can be
constructed directly from the array.
For convenience and API compatibility with Buffer.
@github-actions github-actions bot added parquet Changes to the parquet crate arrow Changes to the arrow crate labels Nov 21, 2024
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 parquet Changes to the parquet crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants