We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
create table tt(a int, b int, key k((a+1)), key k1((a+1), b), key k2((a+1), b), key k3((a+1))); desc select * from tt where a+1 = 5 and b=3; desc select * from tt where a+1 = 5 and b=3;
stable plan
mysql> desc select * from tt where a+1 = 5 and b=3; +---------------------------------+---------+-----------+-----------------------------+---------------------------------------------+ | id | estRows | task | access object | operator info | +---------------------------------+---------+-----------+-----------------------------+---------------------------------------------+ | Projection_4 | 0.01 | root | | test.tt.a, test.tt.b | | └─IndexLookUp_12 | 0.01 | root | | | | ├─IndexRangeScan_9(Build) | 10.00 | cop[tikv] | table:tt, index:k3(`a` + 1) | range:[5,5], keep order:false, stats:pseudo | | └─Selection_11(Probe) | 0.01 | cop[tikv] | | eq(test.tt.b, 3) | | └─TableRowIDScan_10 | 10.00 | cop[tikv] | table:tt | keep order:false, stats:pseudo | +---------------------------------+---------+-----------+-----------------------------+---------------------------------------------+ 5 rows in set (0.00 sec) mysql> desc select * from tt where a+1 = 5 and b=3; +----------------------------------+---------+-----------+--------------------------------+-------------------------------------------------+ | id | estRows | task | access object | operator info | +----------------------------------+---------+-----------+--------------------------------+-------------------------------------------------+ | Projection_4 | 0.10 | root | | test.tt.a, test.tt.b | | └─IndexLookUp_11 | 0.10 | root | | | | ├─IndexRangeScan_9(Build) | 0.10 | cop[tikv] | table:tt, index:k2(`a` + 1, b) | range:[5 3,5 3], keep order:false, stats:pseudo | | └─TableRowIDScan_10(Probe) | 0.10 | cop[tikv] | table:tt | keep order:false, stats:pseudo | +----------------------------------+---------+-----------+--------------------------------+-------------------------------------------------+ 4 rows in set (0.00 sec)
master
The text was updated successfully, but these errors were encountered:
/assign
Sorry, something went wrong.
Note: Make Sure that 'component', and 'severity' labels are added Example for how to fill out the template: #20100
zhuo-zhi
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
stable plan
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: