mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
Make the testcase deterministic
This commit is contained in:
parent
cb002d3479
commit
e292ea8751
2 changed files with 5 additions and 5 deletions
|
@ -1778,13 +1778,13 @@ insert into t1 values (null,'a');
|
|||
insert into t1 values (2,'b');
|
||||
insert into t1 values (-1,'');
|
||||
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
|
||||
{
|
||||
"query_block": {
|
||||
"select_id": 1,
|
||||
"filesort": {
|
||||
"sort_key": "X",
|
||||
"sort_key": "X, t1.s2",
|
||||
"window_functions_computation": {
|
||||
"sorts": {
|
||||
"filesort": {
|
||||
|
@ -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
|
||||
2 b 6
|
||||
1 a 5
|
||||
|
|
|
@ -1092,7 +1092,7 @@ insert into t1 values (2,'b');
|
|||
insert into t1 values (-1,'');
|
||||
|
||||
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;
|
||||
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, s2 desc;
|
||||
drop table t1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue