arrow_arith::aggregate

Function 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.