Skip to content

fix: return errors for missing Variant metadata field names - #11106

Open
peterxcli wants to merge 1 commit into
apache:mainfrom
peterxcli:fix/variant-missing-metadata
Open

peterxcli wants to merge 1 commit into
apache:mainfrom
peterxcli:fix/variant-missing-metadata

Conversation

@peterxcli

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #11069.

unshred_variant panics when a present shredded field name is missing from metadata.

What changes are included in this PR?

Add VariantBuilderExt::try_append_value and propagate builder errors through unshredding, including nested objects and list elements.

Are these changes tested?

Regression tests cover missing metadata names, absent fields, and parent nulls. Variant crate tests, formatting, and Clippy pass.

Are there any user-facing changes?

Missing metadata field names now produce ArrowError instead of a panic. Existing append_value APIs remain available.

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Variant] unshred_variant panics when a shredded field name is absent from metadata

1 participant