You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "DDtKey (via GitHub)" <gi...@apache.org> on 2023/08/18 11:52:48 UTC
[GitHub] [arrow-datafusion] DDtKey opened a new issue, #7326: Wrong error for `substr` function
DDtKey opened a new issue, #7326:
URL: https://github.com/apache/arrow-datafusion/issues/7326
### Describe the bug
Passing wrong type into `substr` function causes the `InternalError`
```
Internal error: The "substr" function can only accept strings.. This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
```
### To Reproduce
```sh
# with datafusion-cli
select substr(123, 1);
```
### Expected behavior
I'd expect the error kind to be `Plan` probably, like these ones: https://github.com/apache/arrow-datafusion/blob/c50268670f8bee2022a9892a0c67073fc360352a/datafusion/expr/src/type_coercion/aggregates.rs#L147-L150
### 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 commented on issue #7326: Wrong error for `substr` function
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #7326:
URL: https://github.com/apache/arrow-datafusion/issues/7326#issuecomment-1683848494
Thank you @DDtKey -- I agree this is a problem.
I think this is a good first issue as the code change will be small and involve writing a test and getting experience with the DataFusion code
--
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
[GitHub] [arrow-datafusion] alamb closed issue #7326: Wrong error for `substr` function
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #7326: Wrong error for `substr` function
URL: https://github.com/apache/arrow-datafusion/issues/7326
--
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