Skip to content

Commit ca8e31e

Browse files
authored
[Variant] Define new shred_variant function (#8366)
# Which issue does this PR close? - Closes #8361 # Rationale for this change See ticket. # What changes are included in this PR? Define a new `shred_variant` function and implement support for structs and a subset of primitive types. # Are these changes tested? Yes, extensive new unit tests # Are there any user-facing changes? The new function is public.
1 parent 18be750 commit ca8e31e

File tree

7 files changed

+1076
-75
lines changed

7 files changed

+1076
-75
lines changed

parquet-variant-compute/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ rust-version = { workspace = true }
3434
arrow = { workspace = true }
3535
arrow-schema = { workspace = true }
3636
half = { version = "2.1", default-features = false }
37+
indexmap = "2.10.0"
3738
parquet-variant = { workspace = true }
3839
parquet-variant-json = { workspace = true }
3940
chrono = { workspace = true }

parquet-variant-compute/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
mod arrow_to_variant;
3939
pub mod cast_to_variant;
4040
mod from_json;
41+
mod shred_variant;
4142
mod to_json;
4243
mod type_conversion;
4344
mod variant_array;
@@ -50,5 +51,6 @@ pub use variant_array_builder::{VariantArrayBuilder, VariantValueArrayBuilder};
5051

5152
pub use cast_to_variant::{cast_to_variant, cast_to_variant_with_options};
5253
pub use from_json::json_to_variant;
54+
pub use shred_variant::shred_variant;
5355
pub use to_json::variant_to_json;
5456
pub use type_conversion::CastOptions;

0 commit comments

Comments
 (0)