Skip to main content

quantity_raw_to_decimal

Function quantity_raw_to_decimal 

Source
pub fn quantity_raw_to_decimal(
    raw: QuantityRaw,
    field: &'static str,
) -> Result<Option<i128>, ArrowError>
Expand description

Encodes a model quantity raw value at the catalog’s uniform decimal scale.

§Errors

Returns an [ArrowError::InvalidArgumentError] if a non-sentinel quantity does not fit in Arrow’s signed decimal representation.