Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-12318
This is a follow on to ARROW-12277
Background: Support for Min/Max/Sum/Count were added for DataType::Timestamp(*) types in apache/arrow#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