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!
What did you do?
If possible, provide a recipe for reproducing the error.
create table t(a int);
create table tt(a int, b varchar(10), index idx(a, b(3)));
insert into t values(1);
insert into tt values(1, 'aaaaaaa'), (1, 'aaaabbb'), (1, 'aaaacccc');
select /*+ TIDB_HJ(tt) */ * from t, tt where t.a=tt.a and tt.b in ('aaaaaaa', 'aaaabbb', 'aaaacccc');
select /*+ TIDB_INLJ(tt) */ * from t, tt where t.a=tt.a and tt.b in ('aaaaaaa', 'aaaabbb', 'aaaacccc');
What did you expect to see?
Both them returns correct dataset.
What did you see instead?
Only hash join returned. Index join returned a empty dataset.
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
The text was updated successfully, but these errors were encountered:
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
Both them returns correct dataset.
Only hash join returned. Index join returned a empty dataset.
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: