Skip to main content

required_price_decimal_array

Function required_price_decimal_array 

Source
pub fn required_price_decimal_array(
    values: impl IntoIterator<Item = PriceRaw>,
    field: &'static str,
) -> Result<Decimal128Array, ArrowError>
Expand description

Builds a scale-16 decimal array from price raw values of a type with no NULL sentinel.

ยงErrors

Returns an [ArrowError] if a value is PRICE_UNDEF or does not fit the declared decimal type, so the required decoders can read back every written value.