[MDEV-12670] Merge of derived tables / views is not transparent for semi-join optimizations Created: 2017-05-03 Updated: 2017-05-17 Resolved: 2017-05-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | 5.5.57 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
For any query Q for which a semi-join optimization is used the equivalent query Q1 with derived table
is always executed without semi-join optimization.
For the EXPLAINs from the testcase the following is returned:
This is not expected as the merge transformation applied to t converts Q1 to Q. |
| Comments |
| Comment by Oleksandr Byelkin [ 2017-05-10 ] |
|
ok to push |
| Comment by Igor Babaev [ 2017-05-10 ] |
|
The fix for this bug was pushed into the 5.5 tree. |