pub fn sum( array: &dyn Array) -> Result<Box<dyn Scalar + 'static, Global>, ArrowError>
compute_aggregate
Returns the sum of all elements in array as a Scalar of the same physical and logical types as array.
array
Scalar
Errors iff the operation is not supported.