[MDEV-327] SHOW EXPLAIN: Different select_type in plans produced by SHOW EXPLAIN and standard EXPLAIN: 'SUBQUERY' vs 'DEPENDENT SUBQUERY' Created: 2012-06-08 Updated: 2012-06-19 Resolved: 2012-06-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.0 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
For the following query
with the default optimizer_switch the usual EXPLAIN returns
while SHOW EXPLAIN produces
bzr version-info
Reproducible with MyISAM, Aria, InnoDB. The test case contains Aria because with MyISAM it is less reliable. Test case:
|
| Comments |
| Comment by Sergei Petrunia [ 2012-06-11 ] | ||||||||||||||||||||
|
There is an interesting difference:
| ||||||||||||||||||||
| Comment by Sergei Petrunia [ 2012-06-19 ] | ||||||||||||||||||||
|
The difference is a bug in subquery handling. Filed it as https://bugs.launchpad.net/maria/+bug/1013343. | ||||||||||||||||||||
| Comment by Sergei Petrunia [ 2012-06-19 ] | ||||||||||||||||||||
|
With fix for that bug, SHOW EXPLAIN and EXPLAIN outputs are no longer different, both show 'SUBQUERY'. |