-
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
Dump table stats error on wrong enum values #21098
Comments
/assign |
Is it fixed already or still a bug? I am seeing almost identical behaviour on current master 4b90ef4 with MySQL. (Just that |
Can't reproduce in TiDB 5.0.
|
@pcqz it seems the problem was already fixed, would you please verify and close if no further issues? |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
drop table if exists t;
create table t (id serial, field ENUM('Y','N') DEFAULT 'N');
insert into t values(1,'A');
analyze table t;
curl ${tidb-server-ip}:${tidb-server-status-port}/stats/dump/test/t
2. What did you expect to see? (Required)
Dump stats successfully with no error.
3. What did you see instead (Required)
convert to MySQL enum failed: item is not in enum [Y N]: [types:1265]Data truncated for column '%s' at row %d
4. What is your TiDB version? (Required)
release-4.0
SIG slack channel
#sig-exec
Score
300
Mentor
The text was updated successfully, but these errors were encountered: