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, usingmethodrequiring a generic type to downcast the generic array to a specific array type andcast_fnto 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Β§
- Numeric
Kind π
TraitsΒ§
- Decimal
Cast πTarget - Primitive
From πVariant - Extension trait for Arrow primitive types that can extract their native value from a Variant
- Shred
Decimal πVariant - Timestamp
From πVariant - Extension trait for Arrow timestamp types that can extract their native value from a Variant
We canβt use
PrimitiveFromVariantdirectly because we need two implementations for each timestamp type β theNTZparam 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
Ofrom aVariant. - variant_
cast_ πwith_ options - Cast a single
Variantvalue with safe/strict semantics. - variant_
to_ πboolean - variant_
to_ πunscaled_ decimal - Returns the unscaled integer representation for Arrow decimal type
Ofrom aVariant.