Skip to main content

cast_to_decimal

Function cast_to_decimal 

Source
fn cast_to_decimal<D, M>(
    array: &dyn Array,
    base: M,
    precision: &u8,
    scale: &i8,
    from_type: &DataType,
    to_type: &DataType,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
where D: DecimalType + ArrowPrimitiveType<Native = M>, M: ArrowNativeTypeOp + DecimalCast,