arrow_cast::cast

Function cast_numeric_arrays

Source
fn cast_numeric_arrays<FROM, TO>(
    from: &dyn Array,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
where FROM: ArrowPrimitiveType, TO: ArrowPrimitiveType, FROM::Native: NumCast, TO::Native: NumCast,
Expand description

Convert Array into a PrimitiveArray of type, and apply numeric cast