pub fn sum<T>(array: &PrimitiveArray<T>) -> Option<T::Native>where
T: ArrowNumericType,
T::Native: Add<Output = T::Native>,
Expand description
Returns the sum of values in the primitive array.
Returns None
if the array is empty or only contains null values.