jeffreyssmith2nd opened a new issue, #10915:
URL: https://github.com/apache/datafusion/issues/10915

   ### Is your feature request related to a problem or challenge?
   
   The changes in https://github.com/apache/datafusion/pull/10651/ lead to a 
change in the error messages given when a function is called without any 
arguments. I think it can be made a little clearer to the user what actually 
went wrong.
   
   The current error message in main:
   ```
   "Error during planning: Error during planning: 
[data_types_with_aggregate_udf] Coercion from [] to the signature VariadicAny 
failed. and No function matches the given name and argument types 
'selector_last()'. You might need to add explicit type casts.\n\tCandidate 
functions:\n\tselector_last(Any, .., Any)"
   ```
   
   ### Describe the solution you'd like
   
   An error that displays to the user that they called a function that requires 
arguments without providing any. One example could be:
   ```
   "Error during planning: Error during planning: SUM does not support zero 
arguments. No function matches the given name and argument types 'SUM()'. You 
might need to add explicit type casts.\n\tCandidate functions:\n\tSUM(UserDefine
   d)"
   ```
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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