universalmind303 opened a new issue, #9900:
URL: https://github.com/apache/arrow-datafusion/issues/9900

   ### Is your feature request related to a problem or challenge?
   
   Datafusion 36 changed a lot of the builtinfunction stuff, mainly to make it 
more modular for which functions you want to register, while this is great, it 
does impose some limitations on end users. 
   
   For example in [GlareDB](https://github.com/GlareDB/glaredb), we build out a 
catalog entry for each of the datafusion functions. (a trait that provides some 
additional functionality on top of what's provided by datafusion). 
   
   ```rs
   trait CatalogEntry {
       const NAME: &'static str;
       const DESCRIPTION: &'static str;
       const EXAMPLE: &'static str;
       const FUNCTION_TYPE: FunctionType = FunctionType::Scalar;
   }
   ```
   
   Currently (datafusion 35) we just create a new struct similar to what is 
already done in the datafusion/functions crate, but to reduce duplicated code, 
we'd like to just implement it directly on the structs
   
   ```rs
   impl CatalogEntry for ArrayToString {
   // ...
   }
   ```
   
   
   
   
   ### Describe the solution you'd like
   
   all function structs in datafusion/functions and datafusion/functions-array 
are public.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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