sdf-jkl opened a new pull request, #12005: URL: https://github.com/apache/arrow-rs/pull/12005
# Which issue does this PR close? - Closes #11952. # Rationale for this change Using the `arrow.parquet.variant` extension type currently requires depending on `parquet-variant-compute`, which pulls in the full `arrow` crate and `parquet-variant-json`. Schema-only consumers such as `datafusion-common` and `datafusion-expr` (apache/datafusion#26822) only need the type itself, which depends on nothing beyond `arrow-schema`. # What changes are included in this PR? `VariantType` moves unchanged from `parquet-variant-compute/src/variant_array.rs` to a new `parquet-variant/src/extension.rs` and is exported as `parquet_variant::VariantType`. `parquet-variant-compute` re-exports it, so `parquet_variant_compute::VariantType` and `parquet::variant::VariantType` keep working and refer to the same type. # Are these changes tested? Yes. Existing uses through the old paths (the `VariantArray` doctests, `variant_get`, and the `parquet` Variant schema tests) are unchanged and still pass. A new unit test in `parquet-variant` covers the type on its own: a struct field accepts the extension and a non-struct field is rejected with the existing error message. # Are there any significant user-facing changes? `VariantType` is now also available from `parquet-variant`. The existing import path is kept, so this is not a breaking change. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
