[MDEV-17518] Range optimization doesn't use ON expressions from nested outer joins Created: 2018-10-22 Updated: 2018-11-08 Resolved: 2018-11-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3 |
| Fix Version/s: | 10.3.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This is the range access part of
Outer join with single-table on the inner side is able to use the ON expression to construct range access:
add another table there and range access is not used anymore:
|
| Comments |
| Comment by Sergei Petrunia [ 2018-10-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2018-October/013030.html | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2018-10-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
http://lists.askmonty.org/pipermail/commits/2018-October/013034.html | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2018-10-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Buildbot tree: http://buildbot.askmonty.org/buildbot/grid?category=main&branch=bb-10.3-mdev17518 | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2018-10-31 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2018-10-31 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Confirm, the above example crashes for me, too. If I run the above query on vanilla 10.3, I get some bizarre output in SHOW WARNINGS:
SHOW WARNINGS;
| |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2018-11-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
After looking at it carefully, I see that the output is correct. | |||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2018-11-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||||
|
Fix for the above is pushed into bb-10.3-mdev17518 branch. |