You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
drop table if exists t;
CREATE TABLE `t` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL,
`c` int(11) DEFAULT NULL,
`d` int(11) DEFAULT NULL,
`e` int(11) DEFAULT NULL,
KEY `a` (`a`),
KEY `b` (`b`),
KEY `c` (`c`),
KEY `d` (`d`),
KEY `c_2` (`c`,`d`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
insert into t values(10, 1,1,1,1);
select /*+ use_index_merge(t) */ * from t where t.a=10 or (t.b=10 and t.e=10);
2. What did you expect to see? (Required)
mysql> select /*+ use_index_merge(t) */ * from t where t.a=10 or (t.b=10 and t.e=10);
+------+------+------+------+------+
| a | b | c | d | e |
+------+------+------+------+------+
| 10 | 1 | 1 | 1 | 1 |
+------+------+------+------+------+
1 row in set, 1 warning (0.01 sec)
3. What did you see instead (Required)
mysql> select /*+ use_index_merge(t) */ * from t where t.a=10 or (t.b=10 and t.e=10);
Empty set (0.00 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master v4.0.0-beta.2-2274-gdb62e341f
release-5.0-rc v5.0.0-rc-21-g8304d661f
release-4.0 v4.0.11-10-g38f9bdd81
The text was updated successfully, but these errors were encountered: