Function arrow_arith::aggregate::sum_array
source · pub fn sum_array<T, A: ArrayAccessor<Item = T::Native>>(
array: A
) -> Option<T::Native>where
T: ArrowNumericType,
T::Native: ArrowNativeTypeOp,
Expand description
Returns the sum of values in the array.
This doesn’t detect overflow. Once overflowing, the result will wrap around.
For an overflow-checking variant, use sum_array_checked
instead.