Skip to main content

decimal_to_arrow

Function decimal_to_arrow 

Source
pub fn decimal_to_arrow(
    value: &Decimal,
    field: &'static str,
) -> Result<i128, ArrowError>
Expand description

Encodes a Rust decimal at the catalog’s scale.

§Errors

Returns an [ArrowError] naming field when the value has more than 16 decimal places or cannot be rescaled exactly.