matthewmturner commented on a change in pull request #984:
URL: https://github.com/apache/arrow-rs/pull/984#discussion_r765201351
##########
File path: arrow/src/compute/kernels/comparison.rs
##########
@@ -1200,6 +1257,29 @@ where
return compare_op_scalar!(left, right, |a, b| a == b);
}
+/// Perform `left == right` operation on a [`PrimitiveArray`] and a scalar
value.
+pub fn eq_dict_scalar<T>(
+ left: &DictionaryArray<T>,
+ right: T::Native,
+) -> Result<BooleanArray>
+where
+ T: ArrowNumericType,
+{
+ #[cfg(not(feature = "simd"))]
+ println!("{}", std::any::type_name::<T>());
+ return compare_dict_op_scalar!(left, T, right, |a, b| a == b);
+}
Review comment:
thx much for putting this together and the explanation. I'll work on
implementing it!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]