[MDEV-13296] Incorrect result without an index hint Created: 2017-07-11 Updated: 2020-08-25 Resolved: 2017-07-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.1.25, 5.5.57, 10.0.32, 10.2.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kyle Joiner (Inactive) | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
RHEL 7 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Query returns incorrect result without an index hint. Test case provided. |
| Comments |
| Comment by Alice Sherepa [ 2017-07-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Reproduced on 10.1.19- 10.1.24, not reproducible on versions >=10.1.25. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Arnaud Adant [ 2017-07-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
please note that the a test case is random ... in 10.1.20.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2017-07-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I think it is related to this bug https://jira.mariadb.org/browse/MDEV-12838 and was fixed with this revision #c258ca2463.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-07-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I agree with Alice's finding, the initial test case (which appears to be deterministic or close to it) also returns wrong results before the patch for
|