elferherrera commented on a change in pull request #9567:
URL: https://github.com/apache/arrow/pull/9567#discussion_r585392500



##########
File path: rust/datafusion/src/physical_plan/functions.rs
##########
@@ -447,6 +446,26 @@ pub fn return_type(
     }
 }
 
+#[cfg(feature = "crypto_expressions")]
+macro_rules! invoke_if_crypto_expressions_feature_flag {
+    ($FUNC:ident, $NAME:expr) => {{
+        use crate::physical_plan::crypto_expressions;
+        crypto_expressions::$FUNC
+    }};
+}
+
+#[cfg(not(feature = "crypto_expressions"))]

Review comment:
       @seddonm1 That's odd, because before posting that I did a small test and 
it did compile. 
   
   ```rust
   #[cfg(feature = "rand_calc")]
   use playground::myrand;
   
   macro_rules! testing_something {
       ($name:expr) => {
           #[cfg(not(feature = "rand_calc"))]
           {
               println!("No feature: {}", $name);
           }
   
           #[cfg(feature = "rand_calc")]
           {
               println!("Feature: {}", $name);
           }
       };
   }
   
   fn main() {
       let a = 3.0001f64.to_le_bytes();
       println!("{:?}", a);
   
       #[cfg(feature = "rand_calc")]
       {
           let res = myrand::with_rand::create_rnd();
           println!("{:?}", res);
       }
   
       testing_something!("Name");
   }
   ```
   
   I should have tested it with your code to see if it would compile as well




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to