[ https://issues.apache.org/jira/browse/ARROW-12318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17318712#comment-17318712 ]
Andrew Lamb commented on ARROW-12318: ------------------------------------- [~Dandandan] notes that PostgreSQL doesn't support SUM or AVG for timestamps: https://www.postgresql.org/docs/13/functions-aggregate.html so perhaps we should not support it in DataFusion either :thinking_face: > [Rust][DataFusion] Add support for AVG(Timestamp) types > ------------------------------------------------------- > > Key: ARROW-12318 > URL: https://issues.apache.org/jira/browse/ARROW-12318 > Project: Apache Arrow > Issue Type: Improvement > Components: Rust - DataFusion > Reporter: Andrew Lamb > Priority: Minor > > This is a follow on to ARROW-12277 > Background: Support for Min/Max/Sum/Count were added for > DataType::Timestamp(*) types in https://github.com/apache/arrow/pull/9970. > This ticket tracks adding support for Avg, which is slightly more involved as > currently Avg assumes the output type is always F64, and in this case I think > Avg(timestamp) should also be (timestamp). We should double check what > postgres does in this case and follow its example -- This message was sent by Atlassian Jira (v8.3.4#803005)