[MDEV-3645] LP:671489 - Wrong result with Aria and MRR in maria-5.3-mwl128-dsmrr-cpk Created: 2010-11-05 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: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT count(table1.col_time_key ) returns a smaller number of rows when executed under optimizer_use_mrr=force with maria-5.3-mwl128-dsmrr-cpk. maria-5.3 returns a correct result. maria-5.3-dsmrr-cpk crashes. Patch for bug 665049 was used for all trees (applied manually if not naturally present). engine_condition_pushdown and mrr_sort_keys do not seem to be involved. Note that the EXPLAIN plan is the same with both optimizer_use_mrr="force" and with "disable". No MRR is mentioned, which is a cause for concern. MRR should be reflected in the EXPLAIN anytime it is used. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-11-05 ] |
|
Re: Wrong result with Aria and MRR in maria-5.3-mwl128-dsmrr-cpk SET SESSION join_cache_level = 0; --disable_warnings CREATE TABLE t1 ( SET SESSION optimizer_use_mrr = 'force'; SELECT count(table1.col_time_key) EXPLAIN SELECT count(table1.col_time_key) SET SESSION optimizer_use_mrr = 'disable'; SELECT count(table1.col_time_key ) EXPLAIN SELECT count(table1.col_time_key ) The EXPLAIN in both cases looks like this: id select_type table type possible_keys key key_len ref rows Extra |
| Comment by Philip Stoev (Inactive) [ 2010-11-10 ] |
|
Re: Wrong result with Aria and MRR in maria-5.3-mwl128-dsmrr-cpk DROP TABLE IF EXISTS t2; DROP TABLE IF EXISTS t1; SELECT count(table1.col_time_key) FROM t1 AS table1 JOIN ( t2 AS table2 JOIN t2 AS table3 ON table3.col_int_key <= table2.col_int_nokey ) ON table3.pk < table2.col_int_key ; |
| Comment by Philip Stoev (Inactive) [ 2010-11-10 ] |
|
Re: Wrong result with Aria and MRR in maria-5.3-mwl128-dsmrr-cpk DROP TABLE IF EXISTS t1; DROP TABLE IF EXISTS t2; SELECT count(table1.col_time_key) FROM t1 AS table1 JOIN ( t2 AS table2 JOIN t2 AS table3 ON table3.col_int_key <= table2.col_int_nokey ) ON table3.pk < table2.col_int_key; |
| Comment by Sergei Petrunia [ 2010-12-02 ] |
|
Re: Wrong result with Aria and MRR in maria-5.3-mwl128-dsmrr-cpk |
| Comment by Rasmus Johansson (Inactive) [ 2010-12-02 ] |
|
Launchpad bug id: 671489 |