universalmind303 commented on issue #7110:
URL: 
https://github.com/apache/arrow-datafusion/issues/7110#issuecomment-1666175626

   what about namespaced enums? it would still use feature flags, but it'd make 
it much more compartmentalized & able to easily split into sub crates. 
   
   so something like
   ```rust
   // this could easily live in it's own crate.
   pub enum StringFunctions {
       // string related functions
   }
   
   pub enum BuiltinScalarFunction {
       #[cfg(feature = "string_expressions")]
       StringNamespace(StringFunctions),
       #[cfg(feature = "list_expressions")]
       ListNamespace(ListFunctions),
       #[cfg(feature = "crypto_expressions")]
       CryptoNamespace(CryptoFunctions),
       Abs,
       // ...other non namespaced functions
   }
   ```


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

Reply via email to