Bug #40192 | Extra null complemented rows when outer join uses Blocked Nested Loops | ||
---|---|---|---|
Submitted: | 21 Oct 2008 3:28 | Modified: | 22 Nov 2010 1:17 |
Reporter: | Igor Babaev | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 6.0-BKA | OS: | Any |
Assigned to: | Igor Babaev | CPU Architecture: | Any |
[21 Oct 2008 3:28]
Igor Babaev
[23 Oct 2008 18:29]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/56931 2662 Igor Babaev 2008-10-23 Fixed bug #40192. When Blocked Nested Loops (BNL) algorithm is used for for a regular join each record of the joined table first is checked by the condition pushed to this table. Only after this the matches for this record in the join buffer are looked for. This does not work for an outer join operation as the condition pushed to an inner table may include predicates from the where clause which should be applied only after a match has been found.
[14 Dec 2008 11:07]
Bugs System
Pushed into 6.0.8-alpha (revid:igor@mysql.com-20081023183352-bdsn1q3yklgw4u0d) (version source revid:igor@mysql.com-20081023183352-bdsn1q3yklgw4u0d) (pib:5)
[14 Jan 2009 0:36]
Paul DuBois
Correction: This is pushed into 6.0.9.
[14 Jan 2009 0:54]
Paul DuBois
Noted in 6.0.9 changelog. When an outer join employed a join buffer to join the first inner table by the Blocked Nested Loops algorithm, extra NULL-complemented rows could be generated if the WHERE clause contained conditions that can be pushed down to this table.
[16 Aug 2010 6:40]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100816062819-bluwgdq8q4xysmlg) (version source revid:alik@sun.com-20100816062612-enatdwnv809iw3s9) (pib:20)
[13 Nov 2010 16:24]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (merge vers: 5.6.99-m4) (pib:21)
[22 Nov 2010 1:17]
Paul DuBois
Noted in 5.6.1 changelog.
[23 Nov 2010 2:29]
Paul DuBois
Correction: No 5.6.1 changelog entry. Bug does not appear in any released 5.6.x version.