-
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
It raised encoding failed when executing select statement on medium blob type #23322
Comments
/cc @XuHuaiyu |
It's better to figure out the affected versions firstly. |
root cause: Copr tries to convert 0xf7 into utf8, then convert it to float, which will be compared by 1. But 0xf7 is not a valid utf8 char(one byte and first bit is 1, check wiki). So TiKV gives error. May be we should std::str::from_utf8_unchecked instead of std::str::from_utf8 when convert bytes to real or any other type. |
We close this. Fix in tikv. |
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)
deploy the tide cluster containing TiKV instance
download 1.txt
2. What did you expect to see? (Required)
successfully
3. What did you see instead (Required)
ERROR 1105 (HY000): encoding failed
tidb log
[err="[tikv:10000]encoding failed"]
4. What is your TiDB version? (Required)
Release Version: v4.0.0-beta.2-2365-g46f5f2177-dirty
Edition: Community
Git Commit Hash: 46f5f21
Git Branch: release-5.0
UTC Build Time: 2021-03-13 14:50:59
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: