Skip to content

Support window frame EXCLUDE clauses - #3847

Merged
zachmu merged 4 commits into
mainfrom
zachmu/window-frame-exclude
Nov 24, 2026
Merged

zachmu merged 4 commits into
mainfrom
zachmu/window-frame-exclude

Conversation

@zachmu

@zachmu zachmu commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Supports window frame EXCLUDE CURRENT ROW / GROUP / TIES.

Fixes #3712

Companion PRs: dolthub/vitess#507, dolthub/go-mysql-server#4153

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Main PR
Total 42090 42090
Successful 21528 21531
Failures 20562 20559
Partial Successes1 5437 5439
Main PR
Successful 51.1475% 51.1547%
Failures 48.8525% 48.8453%

${\color{lightgreen}Progressions (3)}$

subselect

QUERY: select count(*) from tenk1 t
where (exists(select 1 from tenk1 k where k.unique1 = t.unique2) or ten < 0);

window

QUERY: SELECT sum(unique1) over (rows between 2 preceding and 2 following exclude group),
	unique1, four
FROM tenk1 WHERE unique1 < 10;
QUERY: SELECT sum(unique1) over (rows between 2 preceding and 2 following exclude ties),
	unique1, four
FROM tenk1 WHERE unique1 < 10;

Footnotes

  1. These are tests that we're marking as Successful, however they do not match the expected output in some way. This is due to small differences, such as different wording on the error messages, or the column names being incorrect while the data itself is correct. ↩

@coffeegoddd

coffeegoddd commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

@zachmu DOLT

read_tests from_latency to_latency percent_change
covering_index_scan_postgres 2.52 2.66 5.56
groupby_scan_postgres 77.19 77.19 0.0
index_join_postgres 2.39 2.43 1.67
index_join_scan_postgres 1.64 1.64 0.0
index_scan_postgres 419.45 411.96 -1.79
oltp_point_select 0.42 0.42 0.0
oltp_read_only 7.17 7.3 1.81
select_random_points 0.77 0.78 1.3
select_random_ranges 1.1 1.12 1.82
table_scan_postgres 411.96 411.96 0.0
types_table_scan_postgres 1050.76 1032.01 -1.78
write_tests from_latency to_latency percent_change
oltp_delete_insert_postgres 4.65 4.65 0.0
oltp_insert 2.35 2.3 -2.13
oltp_read_write 13.46 13.7 1.78
oltp_update_index 2.57 2.57 0.0
oltp_update_non_index 2.26 2.26 0.0
oltp_write_only 6.21 6.21 0.0
types_delete_insert_postgres 5.09 5.09 0.0

@zachmu
zachmu merged commit 13a3311 into main Nov 24, 2026
27 of 28 checks passed
@zachmu
zachmu deleted the zachmu/window-frame-exclude branch November 24, 2026 00: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.

Window frame EXCLUDE CURRENT ROW / GROUP / TIES is silently ignored

2 participants