-
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
Error occurred when read table stats for table, The error message is [types:1690]constant -9223372036854775808 overflows int #7868
Comments
@darren thanks for reporting! @lamxTyler PTAL. |
A second run of |
@darren Thanks for your feedback. We will fix it soon. |
manually
|
@darren Could you provide the table schema? |
@lamxTyler CREATE TABLE `z_article` (
`contentId` int(10) UNSIGNED NOT NULL,
`userId` varchar(255) NOT NULL,
`content` json NOT NULL,
`updateTime` bigint(20) NOT NULL,
PRIMARY KEY (`contentId`),
KEY `userId` (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin > select max(contentID), max(userId) from z_article;
+----------------+-----------------------------------------+
| max(contentID) | max(userId) |
+----------------+-----------------------------------------+
| 38133640 | shen-me-zhi-de-mai-qi-che-xiao-xiao-zhi |
+----------------+-----------------------------------------+
1 row in set (0.03 sec) |
@darren Do you have some very long json content? |
@lamxTyler Yes, we do! we have to save big json objects: > select max(length(content)) from z_article;
+----------------------+
| max(length(content)) |
+----------------------+
| 162214 |
+----------------------+
1 row in set (0.29 sec) |
@darren Thanks for your feedback. We will fix it soon. |
Bug Report
What did you do?
update tidb cluster from 2.0.6 to 2.1.rc3
What did you expect to see?
query should be very fast.
What did you see instead?
query on some table is very slow, the error message is
I have tried
analyze table t1_domain_cl
manually, it takes 2 hours to finish. but the error persists.stats data in stats_buckets
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: