Skip to content

[Variant] Add unshredded Struct fast-path for `variant_get(..., St…#10032

Closed
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:rich-T-kid/limit-copies-arrow-flight
Closed

[Variant] Add unshredded Struct fast-path for `variant_get(..., St…#10032
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:rich-T-kid/limit-copies-arrow-flight

Conversation

@Rich-T-kid
Copy link
Copy Markdown
Contributor

…ruct)` (#9597)

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. <!--
We typically require tests for all PRs in order to:

  1. Prevent the code from being accidentally broken by subsequent changes
  2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
-->

Are there any user-facing changes?

Which issue does this PR close?

  • Closes #NNN.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

…uct)` (apache#9597)

# Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
-->

- Closes apache#9596.

# Rationale for this change

Check issue
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

# What changes are included in this PR?

Reuse `shred_basic_variant` as a fast path for unshredded `Struct`
handling in `variant_get(..., Struct)`
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->

# Are these changes tested?

Yes, added two unit tests to establish safe mode behavior.
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?
-->

# Are there any user-facing changes?

<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.

If there are any breaking changes to public APIs, please call them out.
-->
@Rich-T-kid Rich-T-kid closed this May 27, 2026
@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label May 27, 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] Add unshredded Struct fast-path for variant_get(..., Struct)

2 participants