tshauck opened a new pull request, #10760: URL: https://github.com/apache/datafusion/pull/10760
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> Closes #10759 ## Rationale for this change Repeat should not panic and should match the behavior of other common engines. ## What changes are included in this PR? Updates the main `repeat` function's logic to only try to cast the i64 to a usize when the count is greater than or equal to 0, otherwise returns an empty string. ## Are these changes tested? Added a sqllogictest. -- 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 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