| Bug #118512 | The missing semi join condition causes incorrect result | ||
|---|---|---|---|
| Submitted: | 24 Jun 7:52 | Modified: | 29 Sep 17:13 |
| Reporter: | Jingqi Tian (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
| Version: | 8.0.42, 8.4.5, 9.3.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | Contribution | ||
[24 Jun 7:52]
Jingqi Tian
[24 Jun 10:17]
MySQL Verification Team
Hello Jingqi Tian, Thank you for the report and test case. Verified as described. regards, Umesh
[25 Jun 7:12]
Jingqi Tian
Hello, Verification Team, this is my bugfix of bug#118512 based on 8.0.42. (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug#118512.diff (application/octet-stream, text), 3.87 KiB.
[25 Jun 8:13]
MySQL Verification Team
Thank you for your Contribution. regards, Umesh
[29 Sep 17:13]
Edward Gilmore
Posted by developer: Added the following note to the MySQL Server 9.5.0 release notes: Queries using semi join with materialization may return incorrect results due to a missing condition. Our thanks to Jingqi Tian and the team at Alibaba.
[29 Sep 17:29]
Edward Gilmore
Posted by developer: Added the following note to the MySQL Server 9.5.0 release notes: Queries with cyclic joins and equi-join predicates referencing the same tables could exhibit unnecessary complexity during planning due to non-equality predicates not being pushed to existing cycle edges.
