Skip to content

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

Open
corasaurus-hex wants to merge 2 commits into
apache:mainfrom
corasaurus-hex:duckdb-window-frame-exclude
Open

corasaurus-hex wants to merge 2 commits 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
@corasaurus-hex
corasaurus-hex force-pushed the duckdb-window-frame-exclude branch from 9aa96a4 to 8da641b Compare September 15, 2026 05:45
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