-
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
TiDB + TiFlash throw out of range error for agg function avg
#29952
Closed
Labels
affects-4.0
This bug affects 4.0.x versions.
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
MPP
related to MPP in tiflash
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Comments
windtalker
added
type/bug
The issue is confirmed as a bug.
sig/planner
SIG: Planner
labels
Nov 20, 2021
|
This was referenced Nov 22, 2021
|
related to pingcap/tiflash#3562 |
Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label. |
This was referenced Dec 3, 2021
fzhedu
added
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
labels
Dec 3, 2021
12 tasks
ti-chi-bot
pushed a commit
that referenced
this issue
Sep 19, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
Sep 19, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
Sep 19, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
affects-4.0
This bug affects 4.0.x versions.
affects-5.0
This bug affects 5.0.x versions.
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
MPP
related to MPP in tiflash
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
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)
4. What is your TiDB version? (Required)
5. root cause
The root cause is the result type of
avg(value)
isDecimal(5,4)
, but when push downavg
, it actaully convertsavg
tosum/count
, the return type ofsum(value)
is set the same asavg(value)
, which isDecimal(5,4)
. Clearly, it is not a reasonable return type forsum(value)
The text was updated successfully, but these errors were encountered: