diff --git a/arrow/src/compute/kernels/arithmetic.rs b/arrow/src/compute/kernels/arithmetic.rs index 340c1139a464..4eb957678892 100644 --- a/arrow/src/compute/kernels/arithmetic.rs +++ b/arrow/src/compute/kernels/arithmetic.rs @@ -628,7 +628,11 @@ where #[cfg(feature = "simd")] { let scalar_vector = T::init(scalar); - return simd_unary_math_op(array, |x| x - scalar_vector, |x| x - scalar); + return Ok(simd_unary_math_op( + array, + |x| x - scalar_vector, + |x| x - scalar, + )); } #[cfg(not(feature = "simd"))] return Ok(unary(array, |value| value - scalar)); @@ -706,7 +710,11 @@ where #[cfg(feature = "simd")] { let scalar_vector = T::init(scalar); - return simd_unary_math_op(array, |x| x * scalar_vector, |x| x * scalar); + return Ok(simd_unary_math_op( + array, + |x| x * scalar_vector, + |x| x * scalar, + )); } #[cfg(not(feature = "simd"))] return Ok(unary(array, |value| value * scalar));