Skip to content

[59_maintenance] fix(arrow-array): PrimitiveRunBuilder was buggy after finish - #11441

Merged
alamb merged 1 commit into
apache:59_maintenancefrom
Jefffrey:backport_11326
Oct 8, 2026
Merged

alamb merged 1 commit into
apache:59_maintenancefrom
Jefffrey:backport_11326

Conversation

@Jefffrey

@Jefffrey Jefffrey commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

…che#11326)

- Closes apache#11325.

`PrimitiveRunBuilder::finish` did not reset `prev_run_end_index`, so a
reused builder kept the previous batch's last run index. That resulted
in various misbehavior, like either dropping data or panicking, on a
subsequent `finish` call.

See above.

Yes; new test added.

No.

Issue spotted and fix developed with Claude Code (Opus 5.5); I have
reviewed and understand the resulting code.
@Jefffrey Jefffrey added the bug Squash those bugs label Oct 8, 2026
@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-array labels Oct 8, 2026

@mbutrovich mbutrovich left a comment

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.

Seems like a clean cherry-pick. LGTM FWIW, thanks @Jefffrey!

@alamb

alamb commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

The vendored code check seems unrelated so merging in

@alamb
alamb merged commit 37e969f into apache:59_maintenance Oct 8, 2026
30 of 31 checks passed
@Jefffrey
Jefffrey deleted the backport_11326 branch October 9, 2026 02:39
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-array bug Squash those bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants