Skip to main content

Module variant_get

Module variant_get 

Source

Re-exportsยง

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::VariantPath; ๐Ÿ”’
use parquet_variant::VariantPathElement; ๐Ÿ”’
use crate::ShreddingState; ๐Ÿ”’
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; ๐Ÿ”’

Structsยง

GetOptions
Controls the action of the variant_get kernel.

Enumsยง

ShreddedPathStep ๐Ÿ”’

Functionsยง

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).
requested_field_is_shredded ๐Ÿ”’
Returns true if as_field requests shredded Variant output.
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.