Commit d29e1472 authored by Sergei Petrunia's avatar Sergei Petrunia

Make test result deterministic.

parent bc6df8d6
......@@ -1923,8 +1923,8 @@ drop table t1;
create table t1 (s1 int, s2 char(5));
insert into t1 values (1,'a');
insert into t1 values (null,null);
insert into t1 values (1,null);
insert into t1 values (null,'a');
insert into t1 values (3,null);
insert into t1 values (4,'a');
insert into t1 values (2,'b');
insert into t1 values (-1,'');
select
......@@ -1933,10 +1933,10 @@ ROW_NUMBER() OVER (order by s1),
CUME_DIST() OVER (order by -s1)
from t1;
s1 s2 ROW_NUMBER() OVER (order by s1) CUME_DIST() OVER (order by -s1)
1 a 4 0.8333333333
NULL NULL 1 0.3333333333
1 NULL 5 0.8333333333
NULL a 2 0.3333333333
2 b 6 0.5000000000
-1 3 1.0000000000
1 a 3 0.8333333333
NULL NULL 1 0.1666666667
3 NULL 5 0.5000000000
4 a 6 0.3333333333
2 b 4 0.6666666667
-1 2 1.0000000000
drop table t1;
......@@ -1171,8 +1171,8 @@ drop table t1;
create table t1 (s1 int, s2 char(5));
insert into t1 values (1,'a');
insert into t1 values (null,null);
insert into t1 values (1,null);
insert into t1 values (null,'a');
insert into t1 values (3,null);
insert into t1 values (4,'a');
insert into t1 values (2,'b');
insert into t1 values (-1,'');
......
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