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
avg/sum of integer types reports overflow #5643
Labels
type/bug
This issue is a bug.
Comments
@birdstorm from the error message, it's possibly produced by tikv, can you provide us the following infos:
|
TiDB log:
TiKV didn't output log in console. Updated. @zz-jason |
A simple SQL snippet to reproduce this issue
|
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.
tidb-server -V
or runselect tidb_version();
on TiDB)?Can be reproduced since TiKV v1.0.5 tag, haven't tested on other more versions except current master branch.
I believe this is related to TiKV's implement on
avg
andsum
.sum()
should not report overflow since its result is converted intoNEWDECIMAL
.Maybe I should create an issue there?
The text was updated successfully, but these errors were encountered: