[MDEV-10844] EXPLAIN FORMAT=JSON doesn't show order direction for filesort Created: 2016-09-20 Updated: 2017-12-30 Resolved: 2017-12-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.12 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 10.2.12 |
| Description |
|
Compare
with
It would be nice to print ASC or DESC somehow. Maybe, only print DESC, because ASC is default so for the sake of brevity it should be omitted. |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2017-12-20 ] | |||
|
psergey What should we do when we have multiple sort keys and multiple orders associated with them An example would be
Should we attach the ASC/DESC associated with the first key in the sort order? | |||
| Comment by Sergei Petrunia [ 2017-12-22 ] | |||
|
I think, the output should be like
| |||
| Comment by Sergei Petrunia [ 2017-12-27 ] | |||
|
Ok to push. |