-
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
ERROR 1493 (HY000): VALUES LESS THAN value must be strictly increasing for each partition #26765
Comments
case2:
expect
got
|
It looks like the bug was introduced by #23428 but actually, it is not, the following case can be reproduced in v4.0, v5.0:
Root cause of this bug is that, when ``NO_UNSIGNED_SUBTRACTION`' is set, TiDB tries to evaluate/cast the value as signed and it reports an error when an overflow happens. PTAL @xiongjiwei, I think we can check the related logic of MySQL source code for a better compatibility of handling 'NO_UNSIGNED_SUBTRACTION' for partition tables. /cc @mjonss , your advise is appreciated. |
@bb7133 your conclusion is correct, it will change the range from UNSIGNED to SIGNED. In #25437 (comment) I did mention the limitation of the range as well as in the next comment, suggesting to reverting #25435. |
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)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
release-5.1 & master
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: