Dandandan opened a new issue, #22208: URL: https://github.com/apache/datafusion/issues/22208
### Describe the bug The table-valued `generate_series(start, stop, step)` can panic when the integer iterator advances past `i64::MAX` while evaluating user SQL. ### To Reproduce ```sql SELECT * FROM generate_series(9223372036854775806, 9223372036854775807, 2); ``` ### Actual behavior `datafusion-cli` panics: ```text thread 'main' panicked at datafusion/functions-table/src/generate_series.rs:101:9: attempt to add with overflow ``` ### Expected behavior DataFusion should return a normal execution error or stop iteration without panicking. ### Notes This is distinct from the already-filed capacity-overflow issue for scalar `range`/`generate_series`; this panic is the table function's iterator doing unchecked `current + step`. -- 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]
