pub fn divide_scalar_dyn<T>(
    array: &dyn Array,
    divisor: T::Native
) -> Result<ArrayRef, ArrowError>where
    T: ArrowNumericType,
    T::Native: ArrowNativeTypeOp,
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. If the scalar is zero then the result of this operation will be Err(ArrowError::DivideByZero). 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.

This doesn’t detect overflow. Once overflowing, the result will wrap around. For an overflow-checking variant, use divide_scalar_checked_dyn instead.