[MDEV-3323] LP:609128 - RQG: Wrong result with JOIN + NOT IN + partial_match_table_scan=ON Created: 2010-07-23 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: | Timour Katchaounov (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT table1 .`col_varchar_key` returns no rows when evaluated using the partial match table scan strategy, whereas there are rows that match the NOT IN condition. Test case: CREATE TABLE `C` ( INSERT INTO `C` VALUES (NULL,2,'w','w'); CREATE TABLE `BB` ( INSERT INTO `BB` VALUES (8,8,NULL,NULL); SET @@optimizer_switch='partial_match_rowid_merge=off,partial_match_table_scan=on,subquery_cache=off,semijoin=off'; SELECT table1 .`col_varchar_key` |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2010-10-25 ] |
|
Re: RQG: Wrong result with JOIN + NOT IN + partial_match_table_scan=ON |
| Comment by Timour Katchaounov (Inactive) [ 2010-10-28 ] |
|
Re: RQG: Wrong result with JOIN + NOT IN + partial_match_table_scan=ON drop table t1, t2; CREATE TABLE t1 ( insert into t1 values ('m', NULL), ('k', NULL); create table t2 ( INSERT INTO t2 VALUES (NULL,NULL); – coorect – wrong result explain |
| Comment by Timour Katchaounov (Inactive) [ 2010-10-28 ] |
|
Re: RQG: Wrong result with JOIN + NOT IN + partial_match_table_scan=ON Therefore the bug is in the old IN-TO-EXISTS code. This bug has |
| Comment by Rasmus Johansson (Inactive) [ 2010-10-28 ] |
|
Launchpad bug id: 609128 |