Skip to content

[Variant] add variant_to_arrow union builder#10313

Draft
sdf-jkl wants to merge 1 commit into
apache:mainfrom
sdf-jkl:variant-to-union
Draft

[Variant] add variant_to_arrow union builder#10313
sdf-jkl wants to merge 1 commit into
apache:mainfrom
sdf-jkl:variant-to-union

Conversation

@sdf-jkl

@sdf-jkl sdf-jkl commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

The last type to be supported by variant_to_arrow cast.

Rationale for this change

Check issue

What changes are included in this PR?

  • Add variant_to_arrow union cast support + unit tests

Are these changes tested?

  • Yes, unit tests

Are there any user-facing changes?

  • Users can now cast Variant to Union type

Casting Variant to dense or sparse Union dispatches each value to the
union field that most exactly represents its runtime type (lossless
widening allowed, declaration order breaks ties). Null rows land in a
Null-typed child if declared, otherwise the first child, since unions
have no top-level null buffer.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Jul 9, 2026
@sdf-jkl sdf-jkl changed the title add variant_to_arrow union builder [Variant] add variant_to_arrow union builder Jul 9, 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] variant_to_arrow types support

1 participant