Skip to content

[57_maintenance] fix(arrow-data): account for FixedSizeList parent offset in MutableArrayData - #11809

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

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

Conversation

@Jefffrey

Copy link
Copy Markdown
Contributor

…rayData (apache#11636)

- Closes apache#11588.

`MutableArrayData::extend` on a `FixedSizeList` with a nonzero parent
offset copied the child values from the start of the child instead of
from the offset.

`build_extend` in `transform/fixed_size_list.rs` adds `array.offset()`
to `start` before computing the child range, the same way apache#10934 did for
structs.

Yes, `test_extend_fixed_size_list_accounts_for_parent_offset` in
`arrow-data/src/data.rs` (next to the struct test from apache#10934). It fails
without the fix.

No.

AI use: I used Claude Code to find the cause and write the fix and test.
I reviewed the change and checked that the test fails without the fix.
@Jefffrey Jefffrey added the bug Squash those bugs label Oct 22, 2026
.for_each(|child| child.extend(index, start * size, (start + len) * size))
let start = start
.checked_add(offset)
.expect("fixed size list range overflows usize");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

altered from cherry pick because we need #9710 for it to be fallible; for now just panic, dont think want to pull in whole other PR for this edge case

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.

makes sense

@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:24
@alamb
alamb merged commit b0d0466 into apache:57_maintenance Oct 22, 2026
26 checks passed
@Jefffrey
Jefffrey deleted the backport_11636_57 branch October 22, 2026 21:48
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