Currently AVG(long) is not support and users have to use AVG(CAST(long as float64)) as the workaround. We should support AVG(long). Imported from Jira [BEAM-8043](https://issues.apache.org/jira/browse/BEAM-8043). Original Jira may contain additional context. Reported by: amaliujia.