You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "2010YOUY01 (via GitHub)" <gi...@apache.org> on 2023/05/19 20:39:09 UTC

[GitHub] [arrow-datafusion] 2010YOUY01 opened a new issue, #6396: Improve error message for function signature mismatch

2010YOUY01 opened a new issue, #6396:
URL: https://github.com/apache/arrow-datafusion/issues/6396

   ### Is your feature request related to a problem or challenge?
   
   Currently the error message for not providing the correct function arguments is not straightforward:
   ```
   ❯ select factorial(3.0);
   Error during planning: Coercion from [Float64] to the signature Uniform(1, [Int64]) failed.
   ```
   
   ### Describe the solution you'd like
   
   I like DuckDB's error message for wrong function arguments, we can adopt a similar approach to enhance the understandability of the error.
   ```
   duckdb> select factorial(3.0);
   Binder Error: No function matches the given name and argument types 'factorial(DECIMAL(2,1))'. You might need to add explicit type casts.
           Candidate functions:
           factorial(INTEGER) -> HUGEINT
   ```
   
   ### 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-unsubscribe@arrow.apache.org.apache.org

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


[GitHub] [arrow-datafusion] alamb closed issue #6396: Improve error message for function signature mismatch

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #6396: Improve error message for function signature mismatch
URL: https://github.com/apache/arrow-datafusion/issues/6396


-- 
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-unsubscribe@arrow.apache.org

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