-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
range info for the inner child of index join in the "explain" result is not correct #8058
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Comments
zz-jason
added
type/bug
The issue is confirmed as a bug.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
sig/planner
SIG: Planner
labels
Oct 25, 2018
Also note that, You need to use |
请教个问题,我对这个 |
@zz-jason |
jarvys
added a commit
to jarvys/tidb
that referenced
this issue
Mar 5, 2019
jarvys
added a commit
to jarvys/tidb
that referenced
this issue
Mar 5, 2019
It has been fixed in the latest master branch: TiDB(root@127.0.0.1:test) > desc select /*+ TIDB_INLJ(t_inner) */ * from t_outer left join t_inner on t_outer.b = t_inner.b and t_inner.a = 1;
+-----------------------------+----------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+
| id | estRows | task | operator info |
+-----------------------------+----------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+
| IndexJoin_9 | 10000.00 | root | left outer join, inner:IndexReader_8, outer key:test.t_outer.b, inner key:test.t_inner.b |
| ├─TableReader_18(Build) | 10000.00 | root | data:TableFullScan_17 |
| │ └─TableFullScan_17 | 10000.00 | cop[tikv] | table:t_outer, keep order:false, stats:pseudo |
| └─IndexReader_8(Probe) | 0.01 | root | index:Selection_7 |
| └─Selection_7 | 0.01 | cop[tikv] | not(isnull(test.t_inner.b)) |
| └─IndexRangeScan_6 | 0.01 | cop[tikv] | table:t_inner, index:a, b, range: decided by [eq(test.t_inner.b, test.t_outer.b) eq(test.t_inner.a, 1)], keep order:false, stats:pseudo |
+-----------------------------+----------+-----------+-----------------------------------------------------------------------------------------------------------------------------------------+
6 rows in set (0.00 sec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
sig/planner
SIG: Planner
type/bug
The issue is confirmed as a bug.
Bug Report
For now, the range info for
IndexScan_6
is:It's not completely correct. It's better to be displayed like:
tidb version:
discovered in this issue: #8039
The text was updated successfully, but these errors were encountered: