Function arrow_arith::arithmetic::divide_checked
source · pub fn divide_checked<T>(
left: &PrimitiveArray<T>,
right: &PrimitiveArray<T>
) -> Result<PrimitiveArray<T>, ArrowError>where
T: ArrowNumericType,
T::Native: ArrowNativeTypeOp,
Expand description
Perform left / right
operation on two arrays. If either left or right value is null
then the result is also null. If any right hand value is zero then the result of this
operation will be Err(ArrowError::DivideByZero)
.
When simd
feature is not enabled. This detects overflow and returns an Err
for that.
For an non-overflow-checking variant, use divide
instead.