Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #21144. Follows #21291.
Rationale for this change
Add
arrow.parquet.variantto DataFusion's canonical extension type registry, following the thin wrappers used for JSON and other canonical types.Draft: waiting on moving Arrow's
VariantTypefromparquet-variant-computeintoparquet-variant, and adopting an Arrow release containing that move. The current dependency pulls in the compute and JSON crates just to register the extension. Before merging, this PR should depend only onparquet-variantfor that type.What changes are included in this PR?
Add
DFVariantand its canonical registration. The wrapper retains the storage datatype and delegates validation and metadata handling to Arrow'sVariantType. Values use ordinary storage-type formatting.Arrow's incomplete storage-field validation is tracked separately in apache/arrow-rs#11938.
What is the testing strategy for this PR?
No new unit tests for the thin delegation wrapper, consistent with the unformatted extensions in #21291.
Formatting, strict workspace Clippy (
--all-targets --all-features),cargo check -p datafusion-common -p datafusion-expr --offline, and all 1,471 core integration tests passed. The required extended workspace run stopped after one sort memory-limit failure (154 extended tests passed); that test passed when rerun alone. Later workspace test binaries did not run.Are there any user-facing changes?
Yes. The canonical registry recognizes
arrow.parquet.variant, andDFVariantis available throughdatafusion_common::types.