[MDEV-2936] LP:901796 - Wrong result with semijoin=ON, materializaiton=ON, RIGHT 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 | ||
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query SELECT * FROM t1 when is run with materialization=ON and semijoin=ON (current defaults), returns NULLs instead of actual values for table t1, even although there is a match for the ON condition. When either materialization or semijoin is OFF, the result is correct. bzr version-info EXPLAIN output with semijoin=on, materialization=on (wrong result): 1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 EXPLAIN output with semijoin=on, materialization=off (correct result): 1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 EXPLAIN output with semijoin=off, materialization=on (correct result): 1 PRIMARY t2 ALL NULL NULL NULL NULL 2 100.00 Using where Minimal optimizer_switch: not required (materialization=on, semijoin=on by default) 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=off,join_cache_incremental=on,join_cache_hashed=on,join_cache_bka=on,optimize_join_buffer_size=off,table_elimination=on Test case: CREATE TABLE t1 ( a INT ); SELECT * FROM t1
|
| Comments |
| Comment by Elena Stepanova [ 2011-12-09 ] |
|
Re: Wrong result with semijoin=ON, materializaiton=ON, RIGHT JOIN |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 901796 |