[MDEV-3341] LP:668644 - Wrong result with maria-5.3-mwl128, join_cache_level=4, BNLH and integers only Created: 2010-10-30 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: | Minor |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT table2 .`col_int_key` field1 FROM T table1 JOIN J table2 ON table1 .`col_int_key` = table2 .`pk` WHERE table2 .`pk` BETWEEN 0 AND 224 HAVING field1 > 7 ORDER BY field1 returns rows that do not match the HAVING condition when executed with join_cache_level=4 , join_buffer_size = 164 . The explain plan says "Using index; Using join buffer (flat, BNLH join)". The query uses only integers, so this is not a charset-mismatch issue. |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-10-30 ] | ||||||||||||||||||||||
|
Re: Wrong result with maria-5.3-mwl128, join_cache_level=4, BNLH and integers only SET SESSION join_cache_level = 4; --disable_warnings CREATE TABLE t1 ( SELECT t1 .col_int_key AS field1 | ||||||||||||||||||||||
| Comment by Igor Babaev [ 2010-10-30 ] | ||||||||||||||||||||||
|
Re: Wrong result with maria-5.3-mwl128, join_cache_level=4, BNLH and integers only With the latest version of mwl128 tree I had: MariaDB [test]> SET SESSION join_buffer_size = 164; MariaDB [test]> SET SESSION join_cache_level = 1; MariaDB [test]> SELECT t1 .col_int_key AS field1
-------------
------------- MariaDB [test]> set join_cache_level=4; MariaDB [test]> SELECT t1 .col_int_key AS field1 FROM t2 JOIN t1 ON t2.col_int_key = t1.pk WHERE t1.pk BETWEEN 0 AND 224 HAVING field1 > 7 ORDER BY field1;
------------
------------ MariaDB [test]> set join_cache_level=6; MariaDB [test]> SELECT t1 .col_int_key AS field1 FROM t2 JOIN t1 ON t2.col_int_key = t1.pk WHERE t1.pk BETWEEN 0 AND 224 HAVING field1 > 7 ORDER BY field1;
-------------
------------- | ||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2010-10-30 ] | ||||||||||||||||||||||
|
Re: Wrong result with maria-5.3-mwl128, join_cache_level=4, BNLH and integers only | ||||||||||||||||||||||
| Comment by Igor Babaev [ 2010-11-09 ] | ||||||||||||||||||||||
|
Re: Wrong result with maria-5.3-mwl128, join_cache_level=4, BNLH and integers only | ||||||||||||||||||||||
| Comment by Igor Babaev [ 2010-11-09 ] | ||||||||||||||||||||||
|
Re: Wrong result with maria-5.3-mwl128, join_cache_level=4, BNLH and integers only | ||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] | ||||||||||||||||||||||
|
Launchpad bug id: 668644 |