SteveLauC opened a new pull request, #9377:
URL: https://github.com/apache/arrow-datafusion/pull/9377
## Which issue does this PR close?
## Rationale for this change
<!--
Why are you proposing this change? If this is already explained clearly in
the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your
changes and offer better suggestions for fixes.
-->
## What changes are included in this PR?
This PR fixes the panic that happens if no arguments are given to `isnan()`:
before:
```sh
❯ select isnan();
thread 'main' panicked at
arrow-datafusion/datafusion/functions/src/math/nans.rs:67:39:
index out of bounds: the len is 0 but the index is 0
```
after:
```sh
❯ select isnan();
Error during planning: No function matches the given name and argument types
'isnan()'. You might need to add explicit type casts.
Candidate functions:
isnan(Float32)
isnan(Float64)
```
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are
they covered by existing tests)?
-->
## Are there any user-facing changes?
no
--
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]