Skip to content

DuckDB, PostgreSQL, SQLite: Support window-frame EXCLUDE - #2500

Open
corasaurus-hex wants to merge 1 commit into
apache:mainfrom
corasaurus-hex:duckdb-window-frame-exclude
Open

DuckDB, PostgreSQL, SQLite: Support window-frame EXCLUDE#2500
corasaurus-hex wants to merge 1 commit into
apache:mainfrom
corasaurus-hex:duckdb-window-frame-exclude

Conversation

@corasaurus-hex

Copy link
Copy Markdown

What is this?

Adds support for window-frame EXCLUDE in the DuckDB, PostgreSQL, SQLite, and Generic dialects.

SELECT sum(n) OVER (ORDER BY n ROWS UNBOUNDED PRECEDING EXCLUDE CURRENT ROW) FROM t;
SELECT sum(n) OVER (ORDER BY n ROWS UNBOUNDED PRECEDING EXCLUDE GROUP) FROM t;
SELECT sum(n) OVER (ORDER BY n ROWS UNBOUNDED PRECEDING EXCLUDE TIES) FROM t;
SELECT sum(n) OVER (ORDER BY n ROWS UNBOUNDED PRECEDING EXCLUDE NO OTHERS) FROM t;

Introduced in DuckDB 0.10.0, PostgreSQL 11, and SQLite 3.28.0.

@corasaurus-hex corasaurus-hex changed the title DuckDB: Support window-frame EXCLUDE DuckDB, PostgreSQL, SQLite: Support window-frame EXCLUDE Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant