arrow_arith::aggregate

Function sum_array_checked

Source
pub fn sum_array_checked<T, A: ArrayAccessor<Item = T::Native>>(
    array: A,
) -> Result<Option<T::Native>, ArrowError>
where T: ArrowNumericType, T::Native: ArrowNativeTypeOp,
Expand description

Returns the sum of values in the array.

This detects overflow and returns an Err for that. For an non-overflow-checking variant, use sum_array instead.