Skip to content

Support map/struct capacities in MutableArrayData - #10801

Merged
Jefffrey merged 1 commit into
apache:mainfrom
EmilyMatt:main
Aug 24, 2026
Merged

Support map/struct capacities in MutableArrayData#10801
Jefffrey merged 1 commit into
apache:mainfrom
EmilyMatt:main

Conversation

@EmilyMatt

@EmilyMatt EmilyMatt commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

The tests seems to completely skip over this and not even use a MutableArrayData, causing them to pass, but all 3 added tests would panic before adding the Map and Struct cases to the match statement.
With this change we can now use MutableArrayData on maps properly with preallocation(meaning using Capacities::List and Capacities::Struct).

Not actually a breaking change, although it does not panic anymore, which is a change I guess.

@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-data labels Aug 23, 2026
@EmilyMatt EmilyMatt changed the title fix: Actually using a map in MutableArrayData crashes fix: Using a map/struct in MutableArrayData panics Aug 23, 2026

@Rich-T-kid Rich-T-kid 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.

LGMT, thank you for adding test!

@Jefffrey Jefffrey changed the title fix: Using a map/struct in MutableArrayData panics Support map/struct capacities in MutableArrayData Aug 24, 2026
@Jefffrey Jefffrey added the enhancement Any new improvement worthy of a entry in the changelog label Aug 24, 2026
@Jefffrey
Jefffrey merged commit bab2817 into apache:main Aug 24, 2026
38 checks passed
@Jefffrey

Copy link
Copy Markdown
Contributor

thanks @EmilyMatt & @Rich-T-kid

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-data enhancement Any new improvement worthy of a entry in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants