-
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
select sum(case when a <= 0 or a > 1000 then 0.0 else b end) from t
returns wrong decimal
#19426
Labels
priority/P1
The issue has P1 priority.
severity/major
sig/execution
SIG execution
type/bug
The issue is confirmed as a bug.
Comments
select sum(case when a <= 0 or a > 1000 then 0.0 else b end) from t
return wrong decimalselect sum(case when a <= 0 or a > 1000 then 0.0 else b end) from t
returns wrong decimal
/label sig/execution |
@dyzsr PTAL. |
/assign @dyzsr |
/info |
Before closing the bug, please complete the following infoCase Not a bug:
Case Duplicate bug:
Case Bug:
|
This was referenced Sep 10, 2020
12 tasks
This was referenced Dec 3, 2021
12 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
priority/P1
The issue has P1 priority.
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)
master
The text was updated successfully, but these errors were encountered: