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)
set @@tidb_partition_prune_mode = 'dynamic'
create table thash (a int, b int, c int, primary key(a), index idx_b(b)) partition by hash(a) partitions 4;
create table tnormal (a int, b int, c int, primary key(a), index idx_b(b));
create table touter (a int, b int, c int);
insert into thash values (1, 2, 3);
insert into tnormal values (1, 2, 3);
insert into touter values (1, 2, 3);
mysql> select /*+ INL_JOIN(touter, thash) */ thash.b from touter join thash use index(idx_b) on touter.b = thash.b;
Empty set (0.01 sec)
mysql> select /*+ INL_JOIN(touter, tnormal) */ tnormal.b from touter join tnormal use index(idx_b) on touter.b = tnormal.b;
+------+
| b |
+------+
| 2 |
+------+
1 row in set (0.00 sec)
2. What did you expect to see? (Required)
They should return the same result.
3. What did you see instead (Required)
Their results are different.
4. What is your TiDB version? (Required)
Master Branch
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
They should return the same result.
3. What did you see instead (Required)
Their results are different.
4. What is your TiDB version? (Required)
Master Branch
The text was updated successfully, but these errors were encountered: