Function primitive_to_same_primitive

Source
pub fn primitive_to_same_primitive<T>(
    from: &PrimitiveArray<T>,
    to_type: &ArrowDataType,
) -> PrimitiveArray<T>
where T: NativeType,
Expand description

Cast PrimitiveArray to a PrimitiveArray of the same physical type. This is O(1).