liukun4515 commented on a change in pull request #1408:
URL: https://github.com/apache/arrow-datafusion/pull/1408#discussion_r771133405
##########
File path: datafusion/src/physical_plan/expressions/average.rs
##########
@@ -86,11 +94,15 @@ impl Avg {
// Average is always Float64, but Avg::new() has a data_type
// parameter to keep a consistent signature with the other
// Aggregate expressions.
- assert_eq!(data_type, DataType::Float64);
-
- Self {
- name: name.into(),
- expr,
+ match data_type {
Review comment:
grate comments
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]