alan910127 commented on issue #14451:
URL: https://github.com/apache/datafusion/issues/14451#issuecomment-2663388998

   > Also FWIW, it seems like the issue with some of these functions is with 
passing in any incorrect type, not just NULL. For example,
   
   @jkosh44 do  you have any desired behavior when an argument of incorrect 
type is passed to the functions? DuckDB actually treat this as there's no 
matching function signature, but we don't have that much information when 
defining array function signatures.
   
   ```
   D select array_sort([1, 2, 3], 123);
   Binder Error:
   No function matches the given name and argument types 'array_sort(INTEGER[], 
INTEGER_LITERAL)'. You might need to add explicit type casts.
           Candidate functions:
           array_sort(ANY[]) -> ANY[]
           array_sort(ANY[], VARCHAR) -> ANY[]
           array_sort(ANY[], VARCHAR, VARCHAR) -> ANY[]
   
   
   LINE 1: select array_sort([1, 2, 3], 123);
                  ^
   ```


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to