Skip to main content

Module type_conversion

Module type_conversion 

Source
Expand description

Module for transforming a typed arrow Array to VariantArray.

MacrosΒ§

generic_conversion_single_value πŸ”’
Convert the value at a specific index in the given array into a Variant, using method requiring a generic type to downcast the generic array to a specific array type and cast_fn to transform the element.
generic_conversion_single_value_with_result πŸ”’
impl_decimal_cast_target πŸ”’
impl_primitive_from_variant πŸ”’
Macro to generate PrimitiveFromVariant implementations for Arrow primitive types
impl_timestamp_from_variant πŸ”’
non_generic_conversion_single_value πŸ”’
Convert the value at a specific index in the given array into a Variant.
primitive_conversion_single_value πŸ”’
Convert the value at a specific index in the given array into a Variant.

EnumsΒ§

NumericKind πŸ”’

TraitsΒ§

DecimalCastTarget πŸ”’
PrimitiveFromVariant πŸ”’
Extension trait for Arrow primitive types that can extract their native value from a Variant
ShredDecimalVariant πŸ”’
TimestampFromVariant πŸ”’
Extension trait for Arrow timestamp types that can extract their native value from a Variant We can’t use PrimitiveFromVariant directly because we need two implementations for each timestamp type – the NTZ param here.

FunctionsΒ§

always_none πŸ”’
as_num πŸ”’
Converts a boolean or numeric variant(integers, floating-point, and decimals) to the specified numeric type T.
cast_decimal_to_num πŸ”’
cast_naive_date πŸ”’
cast_time_utc πŸ”’
convert_to_timestamp_nano πŸ”’
convert_to_timestamp_ntz_nano πŸ”’
convert_to_unscaled_decimal πŸ”’
shred_variant_to_unscaled_decimal πŸ”’
Returns the unscaled integer representation for Arrow decimal type O from a Variant.
variant_cast_with_options πŸ”’
Cast a single Variant value with safe/strict semantics.
variant_to_boolean πŸ”’
variant_to_unscaled_decimal πŸ”’
Returns the unscaled integer representation for Arrow decimal type O from a Variant.