Function arrow::compute::kernels::arithmetic::math_op [−][src]
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,
Expand description
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