viirya commented on code in PR #2760: URL: https://github.com/apache/arrow-rs/pull/2760#discussion_r975661255
########## arrow/src/compute/kernels/arithmetic.rs: ########## @@ -536,8 +540,20 @@ macro_rules! typed_dict_math_op { }}; } +#[cfg(not(feature = "dyn_arith_dict"))] +macro_rules! typed_dict_math_op { + // Applies `LEFT OP RIGHT` when `LEFT` and `RIGHT` both are `DictionaryArray` + ($LEFT: expr, $RIGHT: expr, $OP: expr, $MATH_OP: ident) => {{ + Err(ArrowError::CastError(format!( + "Arithmetic on arrays of type {} with array of type {} requires \"dyn_arith_dict\" feature", + $LEFT.data_type(), $RIGHT.data_type() + ))) + }}; +} + /// Perform given operation on two `DictionaryArray`s. /// Returns an error if the two arrays have different value type +#[cfg(feature = "dyn_arith_dict")] fn math_op_dict<K, T, F>( Review Comment: Hmm, as `add_dyn` has no the feature attribute, I thought that it cannot be built. But it appears not. -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org