Skip to content

Conversation

@tobixdev
Copy link
Contributor

@tobixdev tobixdev commented Dec 3, 2025

Which issue does this PR close?

Rationale for this change

Fix incorrect behavior of take kernel for FixedSizeBinary arrays.

What changes are included in this PR?

Check that the index is valid in the iterator for the result array.

Are these changes tested?

Yes, there is a new test.

Are there any user-facing changes?

Yes, the kernel behaves correctly.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Dec 3, 2025
@tobixdev
Copy link
Contributor Author

tobixdev commented Dec 3, 2025

This might slow down the take kernel. A second approach I've thought of is that we keep the same iterator and apply the null mask at the end (only if the null count is > 0 for indices).

@alamb Could you maye be start the benchmarks so we know the effect of this change? Thanks!

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.

take_fixed_size_binary Does Not Consider NULL Indices

1 participant