Jefffrey commented on issue #18458: URL: https://github.com/apache/datafusion/issues/18458#issuecomment-3566537544
Ah you're right about that 🤔 Actually we could use `return_field_from_args` to control the return datatype based on if we have scalar inputs or not, that way we could return listview types only for the fast(ish) scalar path as described here but potentially keep existing non-view list types if not. https://github.com/apache/datafusion/blob/5f2272219fc0d2f3bbbc4ee54062b41d7f5ab68a/datafusion/expr/src/udf.rs#L633 https://github.com/apache/datafusion/blob/5f2272219fc0d2f3bbbc4ee54062b41d7f5ab68a/datafusion/expr/src/udf.rs#L388-L406 - I don't know if it is preferable to always return view types or not 🤔 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
