[MDEV-3479] LP:891995 - Wrong result with semijoin + IN + join_cache_level Created: 2011-11-18 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: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT * FROM t1, t2 returns 1 row less when executed with semijoin, join_cache_level >= 3: d a b the correct result is: d a b EXPLAIN: id select_type table type possible_keys key key_len ref rows Extra but the bug was also observed with this EXPLAIN: d select_type table type possible_keys key key_len ref rows Extra The date column does not participate in the query, but its removal causes the bug to disappear. So it may be a record-size issue of some sort. bzr version-info test case: CREATE TABLE t1 ( d varchar(1)) engine=aria; CREATE TABLE t2 ( a int NOT NULL, b time, PRIMARY KEY (a)) engine=aria; CREATE TABLE t3 ( a int NOT NULL, b int, c int, d varchar(1), PRIMARY KEY (a), KEY (d,c)) engine=aria; SET SESSION optimizer_switch='semijoin=on,join_cache_hashed=on'; SELECT * FROM t1, t2 |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 891995 |