Github user LosD commented on the issue: https://github.com/apache/metamodel/pull/128 AVG is supposed to return the same output type as input type (or, at least the same class, e.g. an integer type with tinyint, int arguments and floating point type with float or double arguments), not always an input type. That also seems like the only sane thing to do.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---