Jefffrey commented on PR #18091:
URL: https://github.com/apache/datafusion/pull/18091#issuecomment-4395409405

   > I guess what I'm asking is why spark's `avg`'s return type was modified to 
be Float64 in `spark/src/function/aggregate/avg.rs`
   > 
   > ```
   >     fn return_type(&self, _arg_types: &[DataType]) -> Result<DataType> {
   >         Ok(DataType::Float64)
   >     }
   > ```
   > 
   > whereas previously it used the `avg_return_type` which had spark specific 
behavior
   
   At the time of this refactor it only supported f64 input which mapped to f64 
output.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to