should be it
This commit is contained in:
20
external/duckdb/test/sql/peg_parser/window_function.test
vendored
Normal file
20
external/duckdb/test/sql/peg_parser/window_function.test
vendored
Normal 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$);
|
||||
Reference in New Issue
Block a user