Omega359 commented on issue #13552:
URL: https://github.com/apache/datafusion/issues/13552#issuecomment-2500946702

   > Maybe it is due to the combinatorial explosion of code (e.g. if you have 
to handle all combinations of string types (`Utf8`, `LargeUtf8` and `Utf8Vew`) 
for even three arguments, you end up with `3*3*3=27` specialized versions of 
the function 🤔
   
   Yes. You can see the result of allowing that with something like the 
[string_to_array](https://github.com/apache/datafusion/blob/main/datafusion/functions-nested/src/string.rs)
 function. 
   
   I think in cases like that it makes more sense to just coerce the data 
arguments to the same type than to try and handle all the types. Preferably 
this would be done via the signature vs code in each function.


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

Reply via email to