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