arrow_cast::parse

Function parse_decimal

Source
pub fn parse_decimal<T: DecimalType>(
    s: &str,
    precision: u8,
    scale: i8,
) -> Result<T::Native, ArrowError>
Expand description

Parse the string format decimal value to i128/i256 format and checking the precision and scale. The result value can’t be out of bounds.