-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Introduce return type for aggregate sum #8141
Conversation
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
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.
The idea that aggregators might produce different result types with some inputs makes sense.
This PR is generally LGTM 👍. I wonder if some unit tests are needed to reflect this change (for now only decimal's behaviors are different, right?).
@@ -53,11 +56,12 @@ impl Sum { | |||
name: impl Into<String>, | |||
data_type: DataType, | |||
) -> Self { | |||
let data_type = sum_return_type(&data_type).unwrap(); | |||
let return_type = sum_return_type(&data_type).unwrap(); |
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.
sun_return_type
doesn't cover the List
type for now
Thank you @jayzhan211 and @waynexia |
Which issue does this PR close?
Part of #7960
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?