[MDEV-2470] LP:901709 - Assertion `tmp > 0 || record_count == 0' failed at best_access_path with semijoin_with_cache=on and STRAIGHT_JOIN Created: 2011-12-08 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
mysqld: sql_select.cc:5426: void best_access_path(JOIN*, JOIN_TAB*, table_map, uint, bool, double, POSITION*, POSITION*): Assertion `tmp > 0 || record_count == 0' failed. #6 0x00007fb374daf235 in __assert_fail () from /lib64/libc.so.6 bzr version-info Not reproducible on 3315. Minimal switch: semijoin_with_cache=on Full switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on optimizer_prune_level=0 is also required for the test case (included) t2 and t3 need to be Aria or MyISAM. EXPLAIN also fails. Test case: SET optimizer_switch='semijoin_with_cache=on'; CREATE TABLE t1 ( a INT, KEY (a) );
SELECT * FROM t1 AS alias1, t1 AS alias2 |
| Comments |
| Comment by Elena Stepanova [ 2011-12-08 ] |
|
Assertion `tmp > 0 || record_count == 0' failed at best_access_path with semijoin_with_cache=on and STRAIGHT_JOIN bzr version-info Not reproducible on 3315. Minimal switch: semijoin_with_cache=on Full switch: index_merge=on,index_merge_union=on,index_merge_sort_union=on,index_merge_intersection=on,index_merge_sort_intersection=off,index_condition_pushdown=on,derived_merge=on,derived_with_keys=on,firstmatch=on,loosescan=on,materialization=on,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=off,mrr_cost_based=off,mrr_sort_keys=off,outer_join_with_cache=off,semijoin_with_cache=on,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on optimizer_prune_level=0 is also required for the test case (included) t2 and t3 need to be Aria or MyISAM. EXPLAIN also fails. Test case: SET optimizer_switch='semijoin_with_cache=on'; CREATE TABLE t1 ( a INT, KEY (a) );
SELECT * FROM t1 AS alias1, t1 AS alias2 |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 901709 |