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

   Ideally, i'd prefer something like this for implementing scalar udfs. 
   
   ```rust
   pub trait ScalarUdf: Send + Sync {
       /// The name for this function
       fn name(&self) -> &'static str;
   
       /// Return the signature for this function
       fn signature(&self) -> Signature;
   
       /// Return type of the function
       fn return_type(&self) -> DataType;
       
       /// udf implementation
       fn func(&self, args: &[&ColumnarValue]) -> Result<ColumnarValue, 
DataFusionError>
   }
   ```
   
   


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