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

MDEV-10844: EXPLAIN FORMAT=JSON doesn't show order direction for filesort

Currently explain format=json does not show the order direction of fields used during filesort.
This patch would remove this limitation
This commit is contained in:
Varun Gupta
2017-12-30 10:18:22 +05:30
parent 8bcbcac053
commit a118c20c81
5 changed files with 80 additions and 2 deletions

View File

@ -406,3 +406,14 @@ explain format=json
select a, (select max(a) from t1 where t0.a<5 and t1.b<t0.a) from t0;
drop table t0,t1;
--echo #
--echo # MDEV-10844: EXPLAIN FORMAT=JSON doesn't show order direction for filesort
--echo #
create table t1 (a int, b int);
insert into t1 values (1,2),(3,4),(2,3);
explain format=json select * from t1 order by a, b desc;
explain format=json select * from t1 order by a desc, b desc;
explain format=json select * from t1 order by a desc, b ;
drop table t1;