JasonLi-cn opened a new issue, #8182:
URL: https://github.com/apache/arrow-datafusion/issues/8182

   ### Def one UDF: 
   
   ```rust
   my_udf(expr, 'return_type')
   ```
   
   ### Using:
   
   case1:
   ```rust
   my_duf(col, 'UInt32')
   
   Return Type is:
   DataType::UInt32
   ```
   
   case2:
   ```rust
   my_duf(col, 'UInt64')
   
   Return Type is:
   DataType::UInt64
   ```
   
   At present, the above udf cannot be realized through the 
`ReturnTypeFunction`. This is because the `ReturnTypeFunction` provides only 
the data types of the input parameters.
   
   _Originally posted by @JasonLi-cn in 
https://github.com/apache/arrow-datafusion/discussions/7657_


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