[MDEV-3599] LP:803303 - Wrong result with semijoin=on, outer join in maria-5.3-subqueries-mwl90 Created: 2011-06-29 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: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Sergei Petrunia |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Repeatable on maria-5.3-mwl90. Not repeatable in maria-5.3 due to a different query plan. The following query: SELECT alias2.f1 returns no rows when executed with semijoin=on in maria-5.3-subqueries-mwl90, even though there are rows matching the WHERE clause. Explain in maria-5.3-subqueries-mwl90: id select_type table type possible_keys key key_len ref rows Extra explain in maria-5.3: id select_type table type possible_keys key key_len ref rows Extra bzr version-info: revision-id: <email address hidden> optimizer_switch in effect: 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=off,loosescan=off,materialization=off,in_to_exists=on,semijoin=on,partial_match_rowid_merge=on,partial_match_table_scan=on,subquery_cache=on,mrr=on,mrr_cost_based=off,mrr_sort_keys=on,outer_join_with_cache=off,semijoin_with_cache=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=on,table_elimination=on test case: SET SESSION optimizer_switch = 'semijoin=on,materialization=off,firstmatch=off,loosescan=off'; CREATE TABLE t2 ( f1 int) ; |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-06-29 ] |
|
Re: Wrong result with semijoin=on, outer join in maria-5.3-subqueries-mwl90 CREATE TABLE t1 ( f10 int) ; CREATE TABLE t2 ( f10 int, f11 varchar(1)) ; CREATE TABLE t3 ( f10 int) ; CREATE TABLE t4 ( f10 varchar(1), f11 int) ; SELECT * FROM t1 |
| Comment by Sergei Petrunia [ 2011-07-19 ] |
|
Re: Wrong result with semijoin=on, outer join in maria-5.3-subqueries-mwl90 |
| Comment by Rasmus Johansson (Inactive) [ 2011-07-19 ] |
|
Launchpad bug id: 803303 |