Skip to content

Update arrow and parquet crates to 60.2.0 - #220

Merged
sdf-jkl merged 3 commits into
mainfrom
alamb/update-arrow-parquet
Nov 28, 2026
Merged

sdf-jkl merged 3 commits into
mainfrom
alamb/update-arrow-parquet

Conversation

@alamb

@alamb alamb commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Updates the arrow*, parquet and parquet-variant* crates in Cargo.lock from 60.1.0 to 60.2.0. Split out from #218, which updates all the other dependencies.

Fixes a few test (only) things.

alamb and others added 3 commits November 28, 2026 08:27
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
alamb marked this pull request as ready for review November 28, 2026 13:53

| 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]. |

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Comment thread src/shared.rs
Field::new("input", DataType::Struct(Fields::empty()), true)
.with_extension_type(VariantType),
),
Arc::new(variant_field("input")),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@alamb

alamb commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

I don't actually think this is needed prior to publishing the first datafusion-variant version as it is just test changes

@alamb
alamb requested review from sdf-jkl and a balanced review from Copilot November 28, 2026 15:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 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_field helper 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

@sdf-jkl sdf-jkl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you 🙏

@sdf-jkl
sdf-jkl merged commit bd8625b into main Nov 28, 2026
7 checks passed
@sdf-jkl
sdf-jkl deleted the alamb/update-arrow-parquet branch November 28, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants