You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Describe the bug
The
repeat
scalar function currently panics causing a capacity overflow error for negative numbers.To Reproduce
Expected behavior
Postgres and Spark both appear to return empty strings when presented with a negative number.
Additional context
No response
The text was updated successfully, but these errors were encountered: