[MDEV-2708] LP:900469 - Wrong result with semijoin_with_cache=ON, join_cache_level>=3, ORDER BY Created: 2011-12-05 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 |
|
The following query SELECT * FROM t1, t2 alias produces only one row with semijoin_with_cache=ON and join_cache_level>=3 vs two rows with semijoin_with_cache=OFF or join_cache_level<3. The expected result for the test data is two rows. Reproducible with Aria and MyISAM, but not with InnoDB. revno: 3324 MySQL 5.5.18 and MariaDB 5.2.9 with default settings return two rows (as expected). Minimal optimizer_switch: semijoin_with_cache=on (included into the test case). Full optimizer_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 EXPLAIN with semijoin_with_cache=ON, join_cache_level=3 (wrong resultset): EXPLAIN EXPLAIN with semijoin_with_cache=OFF, join_cache_level=3 (correct resultset): EXPLAIN EXPLAIN with semijoin_with_cache=ON, join_cache_level=1 (correct resultset): EXPLAIN Test case: SET join_cache_level = 3; # reproducible with >=3 CREATE TABLE t1 ( a INT, b INT ) ENGINE=Aria; SELECT * FROM t1, t2 alias |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 900469 |