-
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
Support Decimal256 on AVG aggregate expression #7853
Conversation
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.
Looks very nice to me -- thank you @viirya
impl<T: DecimalType + ArrowNumericType> Debug for DecimalAvgAccumulator<T> { | ||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | ||
f.debug_struct("DecimalAvgAccumulator") | ||
.field("sum", &self.sum) |
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.
is this needed because #derive
doesn't know how to handle Option<T::Native>
?
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.
Yea. #derive doesn't work.
Thank you @Dandandan @alamb |
* More * More * More * More * Fix clippy
Which issue does this PR close?
Closes #7852.
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?