-
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
Prefix index breaks for ASCII 0xFF(ÿ) #7115
Comments
@birdstorm |
@coocood Sorry, I copied the wrong result. The issue description has been updated. |
I tried to reproduce the issue, but |
Problem lies here check this line func fixRangeDatum(v *types.Datum, length int) {
// If this column is prefix and the prefix length is smaller than the range, cut it.
if length != types.UnspecifiedLength && length < len(v.GetBytes()) {
v.SetBytes(v.GetBytes()[:length])
}
} The ranger cut the prefix by its bytes. |
This was referenced Jul 30, 2018
@birdstorm @winoros PTAL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
After #7109 merged:
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: