[MDEV-2746] LP:670417 - Diverging results in maria-5.3-mwl128-dsmrr-cpk with join buffer (incremental, BKA join) Created: 2010-11-03 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: | Philip Stoev (Inactive) | Assignee: | Sergei Petrunia |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query SELECT table2.col_varchar_key FROM t2 STRAIGHT_JOIN ( t1 AS table2 JOIN t1 AS table3 ON table3.pk ) ON table3.col_varchar_key = table2.col_varchar_key AND table3.col_varchar_key = table2.col_varchar_nokey ; Returns 999 rows when executed with BKA in maria-5.3-mwl128-dsmrr-cpk . All other execution plans and trees (maria-5.3 and maria-5.3-mwl128) agree that the query should return 1000 rows. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-11-03 ] |
|
Re: Diverging results in maria-5.3-mwl128-dsmrr-cpk with join buffer (incremental, BKA join) --disable_abort_on_error --disable_warnings CREATE TABLE t1 ( SELECT COUNT(table2.col_varchar_key) FROM t2 STRAIGHT_JOIN ( t1 AS table2 JOIN t1 AS table3 ON table3.pk ) ON table3.col_varchar_key = table2.col_varchar_key AND table3.col_varchar_key = table2.col_varchar_nokey ; |
| Comment by Sergei Petrunia [ 2010-11-03 ] |
|
Re: Diverging results in maria-5.3-mwl128-dsmrr-cpk with join buffer (incremental, BKA join) DELETE FROM t2 WHERE pk <> 1; Then the query will produce 47 rows instead of 50 (as opposed to 999 instead of 1000). |
| Comment by Sergei Petrunia [ 2010-11-03 ] |
|
Re: Diverging results in maria-5.3-mwl128-dsmrr-cpk with join buffer (incremental, BKA join)
set optimizer_switch='index_condition_pushdown=off'; and comes back when one runs set optimizer_switch='index_condition_pushdown=on'; Looks like something with DS-MRR and index condition pushdown. |
| Comment by Sergei Petrunia [ 2010-11-03 ] |
|
Re: Diverging results in maria-5.3-mwl128-dsmrr-cpk with join buffer (incremental, BKA join) set optimizer_switch='mrr_sort_keys=off'; makes the query produce correct result, irrespectively of index_condition_pushdown setting. |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 670417 |