arrow_cast::cast::decimal

Function cast_floating_point_to_decimal256

Source
pub(crate) fn cast_floating_point_to_decimal256<T: ArrowPrimitiveType>(
    array: &PrimitiveArray<T>,
    precision: u8,
    scale: i8,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
where <T as ArrowPrimitiveType>::Native: AsPrimitive<f64>,