Function arrow_arith::aggregate::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.