Skip to content

[Variant] Add unshredded Struct fast-path for variant_get(..., Struct)#9597

Merged
alamb merged 2 commits into
apache:mainfrom
sdf-jkl:variant_get-unshredded-struct
Mar 26, 2026
Merged

[Variant] Add unshredded Struct fast-path for variant_get(..., Struct)#9597
alamb merged 2 commits into
apache:mainfrom
sdf-jkl:variant_get-unshredded-struct

Conversation

@sdf-jkl

@sdf-jkl sdf-jkl commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Check issue

What changes are included in this PR?

Reuse shred_basic_variant as a fast path for unshredded Struct handling in variant_get(..., Struct)

Are these changes tested?

Yes, added two unit tests to establish safe mode behavior.

Are there any user-facing changes?

@sdf-jkl sdf-jkl force-pushed the variant_get-unshredded-struct branch from 49c344b to c783026 Compare March 20, 2026 21:12
@github-actions github-actions Bot added parquet Changes to the parquet crate parquet-variant parquet-variant* crates labels Mar 20, 2026
@sdf-jkl sdf-jkl force-pushed the variant_get-unshredded-struct branch from c783026 to 7f16038 Compare March 20, 2026 21:14
@github-actions github-actions Bot removed the parquet Changes to the parquet crate label Mar 20, 2026
@sdf-jkl

sdf-jkl commented Mar 21, 2026

Copy link
Copy Markdown
Contributor Author

@scovich @klion26 @codephage2020 please take a look when available.

@codephage2020 codephage2020 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.

LGTM.Thanks.

@scovich scovich 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.

LGTM

@klion26 klion26 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for the contribution.

@sdf-jkl

sdf-jkl commented Mar 23, 2026

Copy link
Copy Markdown
Contributor Author

@scovich can we merge?

@alamb

alamb commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

Let's do it!

@alamb alamb merged commit c194e54 into apache:main Mar 26, 2026
17 checks passed
@sdf-jkl sdf-jkl deleted the variant_get-unshredded-struct branch March 27, 2026 00:48
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] Add unshredded Struct fast-path for variant_get(..., Struct)

5 participants