martin-g commented on code in PR #19999: URL: https://github.com/apache/datafusion/pull/19999#discussion_r2727724842
########## docs/source/library-user-guide/upgrading.md: ########## @@ -154,6 +154,29 @@ The builder pattern is more efficient as it computes properties once during `bui Note: `with_default_selectivity()` is not deprecated as it simply updates a field value and does not require the overhead of the builder pattern. +### `generate_series` table function changed + +The `generate_series` table function now returns an empty set when the range is invalid, instead of an error. +This behavior is consistent with systems like PostgreSQL. + +Before: + +```sql +> select * from generate_series(0, -1); +Error during planning: Start is bigger than end, but increment is positive: Cannot generate infinite series +``` + +Now: + +```sql +> select * from generate_series(0, -1); ++-------+ +| value | ++-------+ ++-------+ +0 row(s) fetched. +``` + Review Comment: Entry for `range()` ? -- 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]
