Skip to main content

Crate parquet_variant_compute

Crate parquet_variant_compute 

Source
Expand description

VariantArray and compute kernels for the Variant Binary Encoding from Apache Parquet.

ยงMain APIs

ยงCompute Kernels

ยง๐Ÿšง Work In Progress

This crate is under active development and is not yet ready for production use. If you are interested in helping, you can find more information on the GitHub Variant issue

ยงPlatform Support

Only little-endian platforms are officially supported and tested in CI. Big-endian platforms are not tested in CI and may not work correctly. Fixes for big-endian platforms are welcome and handled on a best-effort basis, but compatibility is not guaranteed.

Re-exportsยง

pub use variant_array::ShreddingState;
pub use variant_array::VariantArray;
pub use variant_array::VariantArrayIter;
pub use variant_array_builder::VariantArrayBuilder;
pub use variant_array_builder::VariantValueArrayBuilder;
pub use cast_to_variant::cast_to_variant;
pub use cast_to_variant::cast_to_variant_with_options;
pub use from_json::json_to_variant;
pub use shred_variant::IntoShreddingField;
pub use shred_variant::ShreddedSchemaBuilder;
pub use shred_variant::shred_variant;
pub use to_json::variant_to_json;
pub use unshred_variant::unshred_variant;
pub use variant_get::GetOptions;
pub use variant_get::variant_get;

Modulesยง

arrow_to_variant ๐Ÿ”’
cast_to_variant ๐Ÿ”’
from_json ๐Ÿ”’
Module for transforming a batch of JSON strings into a batch of Variants represented as STRUCT<metadata: BINARY, value: BINARY>
shred_variant ๐Ÿ”’
Module for shredding VariantArray with a given schema.
to_json ๐Ÿ”’
Module for transforming a batch of Variants into JSON strings.
type_conversion ๐Ÿ”’
Module for transforming a typed arrow Array to VariantArray.
unshred_variant ๐Ÿ”’
Module for unshredding VariantArray by folding typed_value columns back into the value column.
variant_array ๐Ÿ”’
VariantArray implementation
variant_array_builder ๐Ÿ”’
VariantArrayBuilder implementation
variant_get ๐Ÿ”’
variant_to_arrow ๐Ÿ”’

Structsยง

VariantType
Arrow Variant [ExtensionType].