-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix AVG groups accummulator ignoring return type #10114
Conversation
@@ -3673,7 +3673,7 @@ physical_plan | |||
11)------------ProjectionExec: expr=[1 as c, 3 as d] | |||
12)--------------PlaceholderRowExec | |||
|
|||
query IIII | |||
query IIII rowsort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found these to be needed due to unstable ordering: https://github.com/apache/arrow-datafusion/actions/runs/8722139931/job/23927618449?pr=10114
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch @gruuya
I'm wondering what datatype it picked up before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gruuya
@@ -3673,7 +3673,7 @@ physical_plan | |||
11)------------ProjectionExec: expr=[1 as c, 3 as d] | |||
12)--------------PlaceholderRowExec | |||
|
|||
query IIII | |||
query IIII rowsort |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which issue does this PR close?
Closes #10113 .
Rationale for this change
What changes are included in this PR?
Coerce AVG accumulator to designated return type in case of columns with nulls.
Are these changes tested?
Yes, also a test is extended.
Are there any user-facing changes?
The query reported in the issue works now.