Repository navigation
Update arrow and parquet crates to 60.2.0 - #220
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5.2 <[email protected]>
arrow-schema 60.2.0 rejects the Variant extension type on a struct without a `metadata` field. Co-Authored-By: Claude Fable 5.2 <[email protected]>
A missing list index on a shredded Variant now reads as SQL NULL, matching the unshredded result. Co-Authored-By: Claude Fable 5.2 <[email protected]>
alamb
marked this pull request as ready for review
November 28, 2026 13:53
alamb
commented
Nov 28, 2026
|
|
||
| | Difference from Spark | Cause and evidence | | ||
| | --- | --- | | ||
| | Reading a missing field from a shredded object as Variant returns Variant null instead of SQL NULL. Casting a shredded Variant null to a struct returns a struct of NULL fields instead of NULL. A missing shredded list index also returns Variant null. | **Arrow `variant_get`.** [arrow-rs#11191](https://github.com/apache/arrow-rs/issues/11191), [arrow-rs#11301](https://github.com/apache/arrow-rs/issues/11301), and [arrow-rs#11050](https://github.com/apache/arrow-rs/issues/11050), which is fixed on arrow-rs `main` but not yet released. [`variant_sql_type.slt`][t-variant-sql-type]. | |
Collaborator
Author
There was a problem hiding this comment.
| Field::new("input", DataType::Struct(Fields::empty()), true) | ||
| .with_extension_type(VariantType), | ||
| ), | ||
| Arc::new(variant_field("input")), |
Collaborator
Author
There was a problem hiding this comment.
refactor to use the existing helper as this one is not right
| # A missing object field reads as Variant null where the unshredded copy | ||
| # returns SQL NULL (row 1): | ||
| # https://github.com/apache/arrow-rs/issues/11191 | ||
| # https://github.com/apache/arrow-rs/issues/11050 |
Collaborator
Author
There was a problem hiding this comment.
Collaborator
Author
|
I don't actually think this is needed prior to publishing the first datafusion-variant version as it is just test changes |
There was a problem hiding this comment.
🟢 Approval recommended
The Arrow and Parquet dependency update has no active review issues.
No open issues 🎉
What changed in this PR
Updates Arrow and Parquet dependencies to 60.2.0 in preparation for the DataFusion Variant 56.0.0 release, complementing the other dependency updates in #218.
Changes:
- Updates locked versions and checksums for Arrow, Parquet, and
parquet-variant*crates. - Uses the shared
variant_fieldhelper to construct valid Variant fields in unit tests. - Updates the shredded-list test expectation and compatibility documentation to reflect missing list elements returning SQL NULL.
| File | Description |
|---|---|
tests/test_files/parquet_shredding.slt |
Expects SQL NULL for missing shredded-list elements and updates explanatory comments. |
src/variant_object_keys.rs |
Uses variant_field for test argument schemas. |
src/to_json.rs |
Uses variant_field in serialization tests. |
src/shared.rs |
Uses variant_field in the shared getter test helper. |
docs/spark-compatibility.md |
Removes the resolved missing shredded-list index discrepancy. |
Cargo.lock |
Updates Arrow, Parquet, and Variant dependencies to 60.2.0. |
Review effort: Balanced
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.
datafusion-varaint(56.0.0) #144Updates the
arrow*,parquetandparquet-variant*crates inCargo.lockfrom 60.1.0 to 60.2.0. Split out from #218, which updates all the other dependencies.Fixes a few test (only) things.