tshauck opened a new issue, #10759:
URL: https://github.com/apache/datafusion/issues/10759
### Describe the bug
The `repeat` scalar function currently panics causing a capacity overflow
error for negative numbers.
### To Reproduce
```
SELECT repeat('hi', -1)
thread 'main' panicked at library/alloc/src/slice.rs:503:50:
capacity overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
### Expected behavior
Postgres and Spark both appear to return empty strings when presented with a
negative number.
### 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]