Skip to content

Conversation

@tobixdev
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

It's non-obvious why the number "8" appears here.

What changes are included in this PR?

Name the number such that it's more obvious that this is a conversion from bytes to bits.

@alamb I can also include the suggested comment if you prefer it. I thought the constant may have a lesser risk of becoming outdated without being noticed when changes to MutableBuffer::new_null happen.

Are these changes tested?

  • No behavior changes

Are there any user-facing changes?

  • No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Nov 24, 2025
@tobixdev tobixdev changed the title Name magic number [minor] Name Magic Number "8" in FixedSizeBinaryArray::new_null Nov 24, 2025
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @tobixdev

@alamb alamb merged commit 08dee63 into apache:main Nov 25, 2025
30 of 31 checks passed
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