Skip to content

fix: preserve zero-width FixedSizeBinary length when filtering - #11042

Merged
Jefffrey merged 2 commits into
apache:mainfrom
Rich-T-kid:rich-T-kid/fix-zero-width-fsb-filter
Sep 15, 2026
Merged

Jefffrey merged 2 commits into
apache:mainfrom
Rich-T-kid:rich-T-kid/fix-zero-width-fsb-filter

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • Closes None.

Rationale for this change

edge case that currently isnt covered

What changes are included in this PR?

checks for if array is empty and has no nulls, if so set the len outright

Are these changes tested?

yes

Are there any user-facing changes?

no

@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-select labels Sep 10, 2026
@Rich-T-kid Rich-T-kid changed the title fix: cover fixed sized binary filter edge case fix: preserve zero-width FixedSizeBinary length when filtering Sep 10, 2026
Comment thread arrow-select/src/filter.rs Outdated
FixedSizeBinaryArray::try_new_with_len(
array.value_length(),
buffer.into(),
None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what about using try_new_with_len unconditionally without needing to branch

@Jefffrey Jefffrey added the bug label Sep 15, 2026
@Jefffrey
Jefffrey merged commit 911721c into apache:main Sep 15, 2026
41 checks passed
@Jefffrey

Copy link
Copy Markdown
Contributor

thanks @Rich-T-kid

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 arrow-select bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants