Skip to content

Conversation

@Jefffrey
Copy link
Contributor

Which issue does this PR close?

  • N/A

Rationale for this change

Reviewing #9182 made me realize we didn't account for empty run arrays in the recent fix for accounting for sliced run arrays in kernels

What changes are included in this PR?

Fix RunEndBuffer::sliced_values to return an empty iterator when the buffer is empty (previously panicked)

Also add some tests for empty run arrays

Are these changes tested?

Added tests

Are there any user-facing changes?

No

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jan 16, 2026
@Jefffrey Jefffrey marked this pull request as ready for review January 16, 2026 00:37
Copy link
Contributor

@mhilton mhilton left a comment

Choose a reason for hiding this comment

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

Makes sense to me. I have checked that that test does indeed show a panic without the code change.

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