Skip to content

refactor(variant): replace shredding cast flag with VariantCastMode - #11294

Merged
sdf-jkl merged 2 commits into
apache:mainfrom
sdf-jkl:codex/variant-cast-mode
Oct 2, 2026
Merged

sdf-jkl merged 2 commits into
apache:mainfrom
sdf-jkl:codex/variant-cast-mode

Conversation

@sdf-jkl

@sdf-jkl sdf-jkl commented Sep 29, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Follow-up to this comment on #10157.

Rationale for this change

Make the distinction between shredding conversions and variant_get casts explicit instead of representing it with a boolean.

What changes are included in this PR?

Replace shred: bool with VariantCastMode::{Shred, Get} throughout variant conversion helpers and their call sites.

Are these changes tested?

Covered by existing tests: 369 unit tests and 15 doc tests pass. Clippy and formatting checks also pass.

Are there any user-facing changes?

No. This is an internal refactor with no behavior changes.

@github-actions github-actions Bot added the parquet-variant parquet-variant* crates label Sep 29, 2026
@sdf-jkl
sdf-jkl enabled auto-merge October 2, 2026 18:15
@sdf-jkl
sdf-jkl disabled auto-merge October 2, 2026 18:15
@sdf-jkl
sdf-jkl added this pull request to the merge queue Oct 2, 2026
@sdf-jkl

sdf-jkl commented Oct 2, 2026

Copy link
Copy Markdown
Member Author

Thanks @Jefffrey

Merged via the queue into apache:main with commit d7b9bf4 Oct 2, 2026
24 checks passed
@sdf-jkl
sdf-jkl deleted the codex/variant-cast-mode branch October 2, 2026 19:00
@Jefffrey Jefffrey added the development-process Internal changes; PRs with this label are excluded from changelog label Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

development-process Internal changes; PRs with this label are excluded from changelog parquet-variant parquet-variant* crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants