1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Cleanup win testcase to always be deterministic

Also remove some whitespace
This commit is contained in:
Vicențiu Ciorbaru
2016-09-22 18:22:34 +02:00
parent 09a8c795fb
commit 29b227c335
2 changed files with 404 additions and 402 deletions

View File

@ -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.

View File

@ -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;