Skip to content

Conversation

kryonix
Copy link
Contributor

@kryonix kryonix commented Jan 27, 2025

With this PR, e.g., SELECT * FROM range(3, 1) no longer throws an error, but returns an empty result instead. This choice is opinionated, but it is more in line with the behavior of PostgreSQL. Fixes part of issue #15483.

With this PR, e.g., range(3, 1) no longer throws an error,
but instead returns an empty result. This is opinionated,
but more in line with the behavior of PostgreSQL.
@Mytherin
Copy link
Collaborator

Thanks for the PR! Unifying the behavior with Postgres seems like a good idea to me. Will have a closer look after the release.

@kryonix kryonix changed the title Change behavior of range/generate_series Unify behavior of range/generate_series with PostgreSQL Jan 28, 2025
@Mytherin Mytherin merged commit 5282ae8 into duckdb:main Feb 11, 2025
49 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

@kryonix kryonix deleted the range_pg_behavior branch February 11, 2025 09:45
Antonov548 added a commit to Antonov548/duckdb-r that referenced this pull request Feb 27, 2025
Unify behavior of `range`/`generate_series` with PostgreSQL (duckdb/duckdb#15935)
krlmlr pushed a commit to duckdb/duckdb-r that referenced this pull request Mar 5, 2025
Unify behavior of `range`/`generate_series` with PostgreSQL (duckdb/duckdb#15935)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
Unify behavior of `range`/`generate_series` with PostgreSQL (duckdb/duckdb#15935)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 15, 2025
Unify behavior of `range`/`generate_series` with PostgreSQL (duckdb/duckdb#15935)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 17, 2025
Unify behavior of `range`/`generate_series` with PostgreSQL (duckdb/duckdb#15935)
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request May 18, 2025
Unify behavior of `range`/`generate_series` with PostgreSQL (duckdb/duckdb#15935)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants