comphead opened a new issue, #22137: URL: https://github.com/apache/datafusion/issues/22137
### Describe the bug ``` select last_value(a) over (order by a RANGE BETWEEN CURRENT ROW AND 4 FOLLOWING) from (select 9223372036854775804 a union all select 9223372036854775805 a union all select 9223372036854775806 a); thread 'main' (39337788) panicked at datafusion/functions-window/src/nth_value.rs:447:27: attempt to subtract with overflow note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` ### To Reproduce Should not crash, should return NULL, and if `ansi` enabled then return application error message, but not crash ### Expected behavior _No response_ ### 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]
