Commit 29b227c3 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Cleanup win testcase to always be deterministic

Also remove some whitespace
parent 09a8c795
......@@ -83,27 +83,27 @@ insert into t2 values
select pk, a, rank() over (order by a) from t2;
pk a rank() over (order by a)
1 0 1
10 4 9
2 0 1
3 1 3
4 1 3
8 2 5
5 2 5
6 2 5
7 2 5
8 2 5
9 4 9
10 4 9
select pk, a, rank() over (order by a desc) from t2;
pk a rank() over (order by a desc)
1 0 9
10 4 1
2 0 9
3 1 7
4 1 7
8 2 3
5 2 3
6 2 3
7 2 3
8 2 3
9 4 1
10 4 1
drop table t2;
#
# Try Aggregates as window functions. With frames.
......
......@@ -82,7 +82,9 @@ insert into t2 values
( 9 , 4),
(10 , 4);
--sorted_result
select pk, a, rank() over (order by a) from t2;
--sorted_result
select pk, a, rank() over (order by a desc) from t2;
drop table t2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment