pub fn divide_scalar_opt_dyn<T>(
    array: &dyn Array,
    divisor: <T as ArrowPrimitiveType>::Native
) -> Result<Arc<dyn Array>, ArrowError>where
    T: ArrowNumericType,
Expand description

Divide every value in an array by a scalar. If any value in the array is null then the result is also null. The given array must be a PrimitiveArray of the type same as the scalar, or a DictionaryArray of the value type same as the scalar.

If any right hand value is zero, the operation value will be replaced with null in the result.

Unlike divide_scalar_dyn or divide_scalar_checked_dyn, division by zero will get a null value instead returning an Err, this also doesn’t check overflowing, overflowing will just wrap the result around.