should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
# name: test/sql/peg_parser/window_function.test
# description: Test window function syntax in peg parser
# group: [peg_parser]
require autocomplete
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$explain select first_value(i IGNORE NULLS) over () from integers;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$select regr_avgx(v, v2) over (partition by k) from aggr;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$select regr_avgx(v, v2) over (w partition by k) from aggr;$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$SELECT sum(unique1) over (w range between unbounded preceding and current row exclude current row);$TEST_PEG_PARSER$);
statement ok
CALL check_peg_parser($TEST_PEG_PARSER$SELECT sum(unique1) over (w range between unbounded preceding and current row exclude current row), unique1, four FROM tenk1d WINDOW w AS (order by four) ORDER BY four, unique1;$TEST_PEG_PARSER$);