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
It's expected to return an error instead of crash for bad input
See reproducer in datafusion-cli
(Run under latest main, compiled using cargo run, commit 00b3f3b)
DataFusion CLI v41.0.0
> select substring('foo', 9223372036854775807 + 1, 1);
thread 'main' panicked at /Users/yongting/Desktop/code/my_datafusion/arrow-datafusion/datafusion/functions/src/unicode/substr.rs:154:47:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Describe the bug
It's expected to return an error instead of crash for bad input
See reproducer in datafusion-cli
(Run under latest main, compiled using
cargo run
, commit 00b3f3b)To Reproduce
No response
Expected behavior
No response
Additional context
Found by SQLancer #11030
The text was updated successfully, but these errors were encountered: