Skip to content

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

Merged
alamb merged 1 commit into
apache:57_maintenancefrom
Jefffrey:backport_11326_57
Oct 22, 2026
Merged

alamb merged 1 commit into
apache:57_maintenancefrom
Jefffrey:backport_11326_57

Conversation

@Jefffrey

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 22, 2026
@github-actions github-actions Bot added the arrow-core Core crates related to representing arrow data label Oct 22, 2026
@Jefffrey
Jefffrey marked this pull request as ready for review October 22, 2026 12:23
@alamb
alamb merged commit 853f12c into apache:57_maintenance Oct 22, 2026
26 checks passed
@Jefffrey
Jefffrey deleted the backport_11326_57 branch October 22, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow-core Core crates related to representing arrow data bug Squash those bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants