Skip to content

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

Merged
alamb merged 1 commit into
apache:58_maintenancefrom
Jefffrey:backport_11636_58
Oct 21, 2026
Merged

alamb merged 1 commit into
apache:58_maintenancefrom
Jefffrey:backport_11636_58

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.
@github-actions github-actions Bot added the arrow-core Core crates related to representing arrow data label Oct 21, 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

@Jefffrey Jefffrey changed the title fix(arrow-data): account for FixedSizeList parent offset in MutableArrayData [58_maintenance] fix(arrow-data): account for FixedSizeList parent offset in MutableArrayData Oct 21, 2026
@Jefffrey Jefffrey added the bug Squash those bugs label Oct 21, 2026
@Jefffrey
Jefffrey marked this pull request as ready for review October 21, 2026 12:09
@alamb

alamb commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Merging as MSRV failure is unrelated. I will fix in this PR

@alamb
alamb merged commit be1a047 into apache:58_maintenance Oct 21, 2026
28 of 29 checks passed
@Jefffrey
Jefffrey deleted the backport_11636_58 branch October 21, 2026 23:44
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.

4 participants