mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add further tests to window8.test.
FossilOrigin-Name: ec7e224f50271a69a28074270b01328ec0ee38751fcb93b2c598d8be2b77a95d
This commit is contained in:
@ -245,21 +245,26 @@ foreach {tn ex} {
|
||||
RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING }
|
||||
4 { ORDER BY a NULLS FIRST GROUPS 6 PRECEDING }
|
||||
5 { ORDER BY c NULLS FIRST RANGE BETWEEN 6 PRECEDING AND 7 FOLLOWING }
|
||||
6 { ORDER BY c NULLS FIRST RANGE BETWEEN 0 PRECEDING AND 0 FOLLOWING }
|
||||
7 { ORDER BY c NULLS FIRST, b NULLS FIRST, a NULLS FIRST
|
||||
ROWS BETWEEN 6 PRECEDING AND UNBOUNDED FOLLOWING }
|
||||
} {
|
||||
execsql_test 5.$tn.$tn2.1 "
|
||||
SELECT max(c) OVER win,
|
||||
min(c) OVER win
|
||||
min(c) OVER win,
|
||||
count(a) OVER win
|
||||
FROM t3
|
||||
WINDOW win AS ( $frame $ex )
|
||||
ORDER BY 1 NULLS FIRST, 2 NULLS FIRST
|
||||
ORDER BY 1 NULLS FIRST, 2 NULLS FIRST, 3 NULLS FIRST
|
||||
"
|
||||
|
||||
execsql_test 5.$tn.$tn2.2 "
|
||||
SELECT sum(c) FILTER (WHERE (c%2)!=0) OVER win,
|
||||
rank() OVER win
|
||||
rank() OVER win,
|
||||
dense_rank() OVER win
|
||||
FROM t3
|
||||
WINDOW win AS ( $frame $ex )
|
||||
ORDER BY 1 NULLS FIRST, 2 NULLS FIRST
|
||||
ORDER BY 1 NULLS FIRST, 2 NULLS FIRST, 3 NULLS FIRST
|
||||
"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user