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

Return BooleanBuffer from BooleanBufferBuilder #4140

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Relates to #3879

Rationale for this change

This improves the ergonomics of creating packed BooleanBuffer and related NullBuffer to feed into the new constructors

What changes are included in this PR?

Are there any user-facing changes?

@tustvold tustvold added the api-change Changes to the arrow API label Apr 26, 2023
@github-actions github-actions bot added arrow Changes to the arrow crate parquet Changes to the parquet crate labels Apr 26, 2023
#[inline]
pub fn finish(&mut self) -> Buffer {
pub fn finish(&mut self) -> BooleanBuffer {
Copy link
Contributor Author

@tustvold tustvold Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I felt it was better to just break the API, than leaving the API in a somewhat incoherent state, where a type called BooleanBufferBuilder doesn't actually build BooleanBuffer

Copy link
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay. It is breaking change, but looks it is easily to adapt with it.

@tustvold tustvold merged commit 341f264 into apache:master Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API 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