Jorge created ARROW-9756:
----------------------------
Summary: [Rust] [DataFusion] Add support for generic return types
of scalar UDFs
Key: ARROW-9756
URL: https://issues.apache.org/jira/browse/ARROW-9756
Project: Apache Arrow
Issue Type: New Feature
Reporter: Jorge
Assignee: Jorge
Currently, we have math functions declared as UDFs that while they can be
evaluated against float32 and float64, their return type is fixed (float64).
This issue is about extending the UDF interface to support generic return types
(a function), so that developers (us included), can register UDFs or variable
return types.
There is a small overhead in this, since evaluating types now requires a
function call, however, IMO this is still very small when compared to anything,
as we are talking about plans. We can always apply some caching if needed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)