Bug #51487 | Assertion failure when semi-join flattening occurs for a subquery in HAVING | ||
---|---|---|---|
Submitted: | 25 Feb 2010 8:14 | Modified: | 23 Nov 2010 3:21 |
Reporter: | Sergey Petrunya | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 6.0 | OS: | Any |
Assigned to: | Tor Didriksen | CPU Architecture: | Any |
Tags: | optimizer_switch, semijoin, subquery |
[25 Feb 2010 8:14]
Sergey Petrunya
[25 Feb 2010 14:10]
Valeriy Kravchuk
Thank you for the bug report. Verified just as described on Mac OS X with recent mysql-6.0-codebase tree.
[3 Mar 2010 11:16]
Roy Lyseng
Problem goes away when disabling semijoin, so according to our rules, I remove the regression tag.
[3 Mar 2010 11:27]
Manyi Lu
See also bug#49198
[8 Mar 2010 9:33]
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/102547 3798 Tor Didriksen 2010-03-08 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove unused virtual function (the DBUG_ASSERT was wrong) @ sql/item.h Remove unused virtual function.
[8 Mar 2010 10:14]
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/102554 3800 Tor Didriksen 2010-03-08 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove unused virtual function (the DBUG_ASSERT was wrong) @ sql/item.h Remove unused virtual function.
[15 Mar 2010 9:55]
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/103200 3822 Tor Didriksen 2010-03-15 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING We now handle fix_after_pullout() in Item_ref, rather than Item_direct_view_ref. @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove unused virtual function (the DBUG_ASSERT was wrong) @ sql/item.h Remove unused virtual function.
[15 Mar 2010 12:54]
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/103226 3824 Tor Didriksen 2010-03-15 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING We now handle fix_after_pullout() in Item_ref, rather than Item_direct_view_ref. @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove virtual function Item_direct_view_ref::fix_after_pullout() @ sql/item.h Remove virtual function Item_direct_view_ref::fix_after_pullout()
[16 Mar 2010 9:56]
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/103402 3821 Tor Didriksen 2010-03-15 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING We now handle fix_after_pullout() in Item_ref, rather than Item_direct_view_ref. @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove virtual function Item_direct_view_ref::fix_after_pullout() @ sql/item.h Remove virtual function Item_direct_view_ref::fix_after_pullout()
[18 Mar 2010 7:50]
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/103648 3832 Tor Didriksen 2010-03-15 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING We now handle fix_after_pullout() in Item_ref, rather than Item_direct_view_ref. @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove virtual function Item_direct_view_ref::fix_after_pullout() @ sql/item.h Remove virtual function Item_direct_view_ref::fix_after_pullout()
[19 Mar 2010 10:33]
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/103803 3834 Tor Didriksen 2010-03-19 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING Remove Item_ref::fix_after_pullout, use the (empty) one inherited from Item @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove virtual function Item_ref::fix_after_pullout() @ sql/item.h Remove virtual function Item_ref::fix_after_pullout()
[19 Mar 2010 14:53]
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/103860 3837 Tor Didriksen 2010-03-19 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/r/subselect_sj_jcl6.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove DBUG_ASSERT(false) from Item_ref::fix_after_pullout() Add some @todo comments/asserts, based on discussions with reviewers.
[22 Mar 2010 13:25]
Tor Didriksen
Pushed to bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-6.0-codebase-bugfixing/
[24 Mar 2010 8:15]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100324081249-yfwol7qtcek6dh7w) (version source revid:alik@sun.com-20100324081113-kc7x1iytnplww91u) (merge vers: 6.0.14-alpha) (pib:16)
[12 Apr 2010 22:02]
Paul DuBois
Noted in 6.0.14 changelog. For debug builds, semijoin flattening for a subquery in a HAVING clause could raise an assertion.
[15 Apr 2010 11:24]
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/105722 3077 Tor Didriksen 2010-04-15 Bug #51487 Assertion failure when semi-join flattening occurs for a subquery in HAVING Backport of tor.didriksen@sun.com-20100319145250-fgnaangdtr6q3w2r @ mysql-test/r/subselect_sj.result Add test case. @ mysql-test/t/subselect_sj.test Add test case. @ sql/item.cc Remove DBUG_ASSERT(false) from Item_ref::fix_after_pullout() Add some @todo comments/asserts, based on discussions with reviewers.
[16 Aug 2010 6:39]
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:08]
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)
[23 Nov 2010 3:21]
Paul DuBois
Bug does not appear in any released 5.6.x version. No 5.6.1 changelog entry needed.