Skip to content

Conversation

@cloud-fan
Copy link
Contributor

backport #34180

What changes were proposed in this pull request?

This bug was introduced by #33177

When checking overflow of the sum value in the average function, we should use the sumDataType instead of the input decimal type.

Why are the changes needed?

fix a regression

Does this PR introduce any user-facing change?

Yes, the result was wrong before this PR.

How was this patch tested?

a new test

This bug was introduced by apache#33177

When checking overflow of the sum value in the average function, we should use the `sumDataType` instead of the input decimal type.

fix a regression

Yes, the result was wrong before this PR.

a new test

Closes apache#34180 from cloud-fan/bug.

Lead-authored-by: Wenchen Fan <[email protected]>
Co-authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
@cloud-fan
Copy link
Contributor Author

cc @gengliangwang

@github-actions github-actions bot added the SQL label Oct 6, 2021
@SparkQA
Copy link

SparkQA commented Oct 6, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48381/

@SparkQA
Copy link

SparkQA commented Oct 6, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/48381/

@gengliangwang
Copy link
Member

Thanks, merging to 3.2

gengliangwang pushed a commit that referenced this pull request Oct 6, 2021
backport #34180

### What changes were proposed in this pull request?

This bug was introduced by #33177

When checking overflow of the sum value in the average function, we should use the `sumDataType` instead of the input decimal type.

### Why are the changes needed?

fix a regression

### Does this PR introduce _any_ user-facing change?

Yes, the result was wrong before this PR.

### How was this patch tested?

a new test

Closes #34193 from cloud-fan/bug.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
@SparkQA
Copy link

SparkQA commented Oct 6, 2021

Test build #143868 has finished for PR 34193 at commit 0c59f93.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

+1, LGTM. Thank you!

sunchao pushed a commit to sunchao/spark that referenced this pull request Dec 8, 2021
backport apache#34180

### What changes were proposed in this pull request?

This bug was introduced by apache#33177

When checking overflow of the sum value in the average function, we should use the `sumDataType` instead of the input decimal type.

### Why are the changes needed?

fix a regression

### Does this PR introduce _any_ user-facing change?

Yes, the result was wrong before this PR.

### How was this patch tested?

a new test

Closes apache#34193 from cloud-fan/bug.

Authored-by: Wenchen Fan <[email protected]>
Signed-off-by: Gengliang Wang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants