datatypes::compute

Function sum_array_checked

pub fn sum_array_checked<T, A>(
    array: A,
) -> Result<Option<<T as ArrowPrimitiveType>::Native>, ArrowError>
where A: ArrayAccessor<Item = <T as ArrowPrimitiveType>::Native>, T: ArrowNumericType, <T as ArrowPrimitiveType>::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.