Skip to content

Add is_valid and truncate methods to NullBufferBuilder#7013

Merged
alamb merged 14 commits intoapache:mainfrom
Chen-Yuan-Lai:add_required_methods
Jan 27, 2025
Merged

Add is_valid and truncate methods to NullBufferBuilder#7013
alamb merged 14 commits intoapache:mainfrom
Chen-Yuan-Lai:add_required_methods

Conversation

@Chen-Yuan-Lai
Copy link
Contributor

@Chen-Yuan-Lai Chen-Yuan-Lai commented Jan 24, 2025

Which issue does this PR close?

Closes #7002 .

Rationale for this change

As #7002 says, some required methods are implemented due to the need to replace BooleanBufferBuilder with NullBufferBuilder in DataFsusion.

What changes are included in this PR?

  • Implemented methods below:
    • capacity()
    • is_valid() (as same as get_bit() in BooleanBufferBuilder)
    • truncate()
  • Add related unit tests

Are there any user-facing changes?

Loading
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add required methods to access inner builder for NullBufferBuilder

3 participants