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!
mysql> drop table t; Query OK, 0 rows affected (0.02 sec) mysql> create table t (i varchar(20) primary key); Query OK, 0 rows affected (0.01 sec) mysql> insert into t values ("a"); Query OK, 1 row affected (0.00 sec) mysql> select _tidb_rowid from t; +-------------+ | _tidb_rowid | +-------------+ | 1 | +-------------+ 1 row in set (0.00 sec) mysql> select _tidb_rowid from t use index (`primary`); +-------------+ | _tidb_rowid | +-------------+ | 97 | +-------------+ 1 row in set (0.00 sec) mysql> explain select _tidb_rowid from t use index (`primary`); +-------------------+-------+------+---------------------------------------------------------------------+ | id | count | task | operator info | +-------------------+-------+------+---------------------------------------------------------------------+ | IndexReader_5 | 1.00 | root | index:IndexScan_4 | | └─IndexScan_4 | 1.00 | cop | table:t, index:i, range:[NULL,+inf], keep order:false, stats:pseudo | +-------------------+-------+------+---------------------------------------------------------------------+ 2 rows in set (0.00 sec) mysql> explain select _tidb_rowid from t; +-------------------+-------+------+------------------------------------------------------------+ | id | count | task | operator info | +-------------------+-------+------+------------------------------------------------------------+ | TableReader_5 | 1.00 | root | data:TableScan_4 | | └─TableScan_4 | 1.00 | cop | table:t, range:[-inf,+inf], keep order:false, stats:pseudo | +-------------------+-------+------+------------------------------------------------------------+ 2 rows in set (0.00 sec)
mysql> select _tidb_rowid from t use index (`primary`); +-------------+ | _tidb_rowid | +-------------+ | 1 | +-------------+ 1 row in set (0.00 sec)
mysql> select _tidb_rowid from t use index (`primary`); +-------------+ | _tidb_rowid | +-------------+ | 97 | +-------------+ 1 row in set (0.00 sec)
tidb-server -V
select tidb_version();
The text was updated successfully, but these errors were encountered:
This should be fixed in c23a30c by #8118
Sorry, something went wrong.
😯 I've checked the latest master. It's fixed.
No branches or pull requests
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
or runselect tidb_version();
on TiDB)?d07e5fb
The text was updated successfully, but these errors were encountered: