[][src]Function arrow::compute::kernels::arithmetic::math_op

pub fn math_op<T, F>(
    left: &PrimitiveArray<T>,
    right: &PrimitiveArray<T>,
    op: F
) -> Result<PrimitiveArray<T>> where
    T: ArrowNumericType,
    F: Fn(T::Native, T::Native) -> T::Native

Helper function to perform math lambda function on values from two arrays. If either left or right value is null then the output value is also null, so 1 + null is null.

Errors

This function errors if the arrays have different lengths