[MDEV-12675] Two equivalent inner join queries are computed by different executions plans. Created: 2017-05-03 Updated: 2017-05-10 Resolved: 2017-05-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.57 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
These two join queries use just two different forms for expressing the join operation and they are are equivalent:
However their execution plans are different:
The problem can be reproduced with the following test case.
|
| Comments |
| Comment by Igor Babaev [ 2017-05-10 ] |
|
The cause of this bug was the same as for the bug mdev-12670. So both of them were fixed by the same patch that was pushed into the 5.5 tree. |