Commit e292ea87 authored by Sergei Petrunia's avatar Sergei Petrunia

Make the testcase deterministic

parent cb002d34
...@@ -1778,13 +1778,13 @@ insert into t1 values (null,'a'); ...@@ -1778,13 +1778,13 @@ insert into t1 values (null,'a');
insert into t1 values (2,'b'); insert into t1 values (2,'b');
insert into t1 values (-1,''); insert into t1 values (-1,'');
explain format=json explain format=json
select *, row_number() over (order by s1) as X from t1 order by X desc; select *, row_number() over (order by s1) as X from t1 order by X desc, s2 desc;
EXPLAIN EXPLAIN
{ {
"query_block": { "query_block": {
"select_id": 1, "select_id": 1,
"filesort": { "filesort": {
"sort_key": "X", "sort_key": "X, t1.s2",
"window_functions_computation": { "window_functions_computation": {
"sorts": { "sorts": {
"filesort": { "filesort": {
...@@ -1803,7 +1803,7 @@ EXPLAIN ...@@ -1803,7 +1803,7 @@ EXPLAIN
} }
} }
} }
select *, row_number() over (order by s1) as X from t1 order by X desc; select *, row_number() over (order by s1) as X from t1 order by X desc, s2 desc;
s1 s2 X s1 s2 X
2 b 6 2 b 6
1 a 5 1 a 5
......
...@@ -1092,7 +1092,7 @@ insert into t1 values (2,'b'); ...@@ -1092,7 +1092,7 @@ insert into t1 values (2,'b');
insert into t1 values (-1,''); insert into t1 values (-1,'');
explain format=json explain format=json
select *, row_number() over (order by s1) as X from t1 order by X desc; select *, row_number() over (order by s1) as X from t1 order by X desc, s2 desc;
select *, row_number() over (order by s1) as X from t1 order by X desc; select *, row_number() over (order by s1) as X from t1 order by X desc, s2 desc;
drop table t1; drop table t1;
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