-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
new collation use latin1,primary key is clustered index,index and data check are inconsistent #24548
Comments
@vivid392845427 Dose non-clustered index table has such problems? |
only occurs in clustered index,has been modified the issue title |
another Scenes: |
/cc @lysu @wjhuang2016 |
has be addressed with #24578 but the issue still have problem if run with tikv, it can be simplified as
no prefix and still have problem |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
set new_collations_enabled_on_first_bootstrap: true
create table t1 ( c_int int, c_str varchar(40) character set latin1 collate latin1_bin, primary key(c_int, c_str(8)) clustered , key(c_int) , key(c_str) );
insert into t1 values (1, 'jovial edison');
admin check table t1;
2. What did you expect to see? (Required)
mysql> admin check table t1;
Query OK, 0 rows affected (0.06 sec)
3. What did you see instead (Required)
mysql> admin check table t1;
ERROR 1105 (HY000): handle &kv.CommonHandle{encoded:[]uint8{0x3, 0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf8}, colEndOffsets:[]uint16{0x9, 0x13}}, index:types.Datum{k:0x1, decimal:0x0, length:0x0, i:1, collation:"", b:[]uint8(nil), x:interface {}(nil)} != record:
4. What is your TiDB version? (Required)
Release Version: v5.0.1
Edition: Community
Git Commit Hash: 1145e34
Git Branch: heads/refs/tags/v5.0.1
UTC Build Time: 2021-04-23 07:32:04
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: