You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createtablet(a longtext);
insert into t value(repeat("a",65535));
analyze table t with 0 topn;
insert into t value(repeat("a",65536));
analyze table t with 0 topn;
2. What did you expect to see? (Required)
Analyze successfully.
3. What did you see instead (Required)
The second analyze failed.
ERROR 1406 (22001): Data too long for column 'lower_bound' at row 1
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered:
This bug affects the old statistics also.
Increasing the sample size just increases the possibility the bug occurs.
winoros
changed the title
Can't analyze columns with string longer than 65535 bytes when using analyze ver2
Can't analyze columns with string longer than 65535 bytes
Oct 14, 2021
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
Analyze successfully.
3. What did you see instead (Required)
The second analyze failed.
4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: