Skip to main content Module variant_get Copy item path Source use arrow::array; π use arrow::array::Array; π use arrow::array::ArrayRef; π use arrow::array::GenericListArray; π use arrow::array::GenericListViewArray; π use arrow::array::ListLikeArray; π use arrow::array::StructArray; π use arrow::array::UInt64Array; π use arrow::array::make_array; π use arrow::buffer::NullBuffer; π use arrow::compute::CastOptions; π use arrow::compute::take; π use arrow::datatypes::Field; π use arrow::error::Result; π use arrow_schema::ArrowError; π use arrow_schema::DataType; π use arrow_schema::FieldRef; π use parquet_variant::Variant; π use parquet_variant::VariantMetadataView; π use parquet_variant::VariantPath; π use parquet_variant::VariantPathElement; π use parquet_variant::VariantView; π use crate::ShreddingState ; π use crate::variant_array::BinaryColumn ; π use crate::variant_array::all_null_value_column ; π use crate::variant_to_arrow::make_variant_to_arrow_row_builder ; π use crate::VariantArray ; π use crate::VariantType ; π use crate::unshred_variant ; π use crate::unshred_variant ; π use arrow::array::AsArray; π use std::sync::Arc ; π GetOptions Controls the action of the variant_get kernel. ShreddedPathStep π follow_list_like_index π Take one list-like element (at index) per input row as the next path step. follow_shredded_path_element π Given a shredded variant field β a (value?, typed_value?) pair β try to take one path step
deeper. For a VariantPathElement::Field, if there is no typed_value at this level, if
typed_value is not a struct, or if the requested field name does not exist, traversal returns
a missing-path step (Missing or NotShredded depending on whether value exists). get_path_from_bytes π Extracts path from an unshredded variant column, reading each rowβs encoded bytes directly. requested_field_is_shredded π Returns true if as_field requests shredded Variant output. row_value π Views a row of an unshredded variant column. shredded_get_path π Follows the given path as far as possible through shredded variant fields. If the path ends on a
shredded field, return it directly. Otherwise, use a row shredder to follow the rest of the path
and extract the requested value on a per-row basis. try_perfect_shredding π variant_get Returns an array with the specified path extracted from the variant values.