[MDEV-3245] LP:885168 - Wrong result with icp, ranges in maria-5.3-icp Created: 2011-11-02 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: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query: SELECT * FROM t1 WHERE NOT ( b = 'Texas' ) AND b BETWEEN 'wy' AND 'y' OR ( b = 'Pennsylvania' ) ORDER BY a; returns a b when executed with ICP in maria-5.3-icp and a b otherwise. The table contains a string "Pennsylvan" which is a subset of "Pennsylvania" EXPLAIN with ICP: note that ICP is not shown anywhere: EXPLAIN without ICP: minimal switch:index_condition_pushdown=ON full switch: bzr version-info test case: CREATE TABLE t1 ( a varchar(64), b varchar(10), KEY (a), KEY (b)) ; SET SESSION optimizer_switch='index_condition_pushdown=on'; |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-11-02 ] |
|
Re: Wrong result with icp, ranges in maria-5.3-icp |
| Comment by Philip Stoev (Inactive) [ 2011-11-02 ] |
|
Re: Wrong result with icp, ranges in maria-5.3-icp --source include/have_innodb.inc CREATE TABLE t2 ( b int, d varchar(1), KEY (d)) ENGINE=InnoDB; SET SESSION optimizer_switch='index_condition_pushdown=on'; SELECT t1.c |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 885168 |