Function arrow2::compute::cast::partial_utf8_to_primitive
source · pub fn partial_utf8_to_primitive<O: Offset, T>(
from: &Utf8Array<O>,
to: &DataType
) -> PrimitiveArray<T>where
T: NativeType + FromLexical,
Available on crate feature
compute_cast
only.Expand description
Casts a Utf8Array
to a PrimitiveArray
at best-effort using lexical_core::parse_partial
, making any uncastable value as zero.