yyy1000 opened a new pull request, #8985:
URL: https://github.com/apache/arrow-datafusion/pull/8985

   ## Which issue does this PR close?
   Closes #8624 
   
   ## Rationale for this change
   This PR will extend ScalarFunctionImpl, so that when users want to create a 
`ScalarUDF` by implementing `ScalarUDFImpl`, they can implement function 
`return_type_from_exprs` in `trait ScalarUDFImpl`. It also provides a default 
implementation that wil call `return_type`.
   
   ## What changes are included in this PR?
   
   1. Extending the trait `ScalarUDFImpl` by adding a new `fn` and default 
implementation
   2. An example that shows how to resolve the problem in 
https://github.com/apache/arrow-datafusion/discussions/7657
   
   ## Are these changes tested?
   
   Yes, by adding an example and I tested it.
   
   


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