[MDEV-2328] LP:978479 - Wrong result (extra rows) with derived_with_keys+loosescan+semijoin=ON, materialization=OFF, IN subquery from a temptable view Created: 2012-04-11 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: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query SELECT * FROM t1 AS t1_1, t1 AS t1_2 on the test data produces 13 rows with semijoin+loosescan+derived_with_keys and v being a temptable view, and 10 rows when not all of these conditions are met. 10 rows is correct. bzr version-info Notes: Minimal optimizer_switch: derived_with_keys=on,loosescan=on,semijoin=on,materialization=off EXPLAIN with the minimal optimizer switch (semijoin+loosescan+derived_with_keys=ON, everything else OFF): id select_type table type possible_keys key key_len ref rows filtered Extra Test case: SET optimizer_switch = 'derived_with_keys=on,loosescan=on,semijoin=on,materialization=off'; CREATE TABLE t1 ( a INT, b INT ); CREATE ALGORITHM=TEMPTABLE SELECT * FROM t1 AS t1_1, t1 AS t1_2
|
| Comments |
| Comment by Sergei Petrunia [ 2012-04-17 ] |
|
Re: Wrong result (extra rows) with derived_with_keys+loosescan+semijoin=ON, materialization=OFF, IN subquery from a temptable view
|
| Comment by Elena Stepanova [ 2012-06-24 ] |
|
Re: Wrong result (extra rows) with derived_with_keys+loosescan+semijoin=ON, materialization=OFF, IN subquery from a temptable view |
| Comment by Rasmus Johansson (Inactive) [ 2012-06-24 ] |
|
Launchpad bug id: 978479 |