Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Dec 23, 2025

Which issue does this PR close?

Rationale for this change

@Jefffrey suggested renaming these fields would help make it even more clear that the offset and lengths in BooleanBuffer are in terms of bits (not bytes)

What changes are included in this PR?

Update field names and improve some more comments

Are these changes tested?

Are there any user-facing changes?

No, this is internal field name and documentation changes only

I did consider deprecating BooleanBuffer::len and renaming it to BooleanBuffer::bit_len and similarly for offset, but that seems overly aggressive for downstream consumers (they have to make changes for no obvious benefit 🤔 )

@github-actions github-actions bot added the arrow Changes to the arrow crate label Dec 23, 2025
@alamb alamb force-pushed the alamb/update_field_names branch from 8b30fd7 to fe0d9b7 Compare December 23, 2025 20:53
@alamb alamb marked this pull request as ready for review December 23, 2025 20:53
buffer: Buffer,
/// Offset in bits (not bytes)
offset: usize,
bit_offset: usize,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the key change -- rename these fields

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.

2 participants