Class BaseImplementAvgBigint

java.lang.Object
io.trino.plugin.jdbc.aggregation.BaseImplementAvgBigint
All Implemented Interfaces:
AggregateFunctionRule<JdbcExpression,ParameterizedExpression>

public abstract class BaseImplementAvgBigint extends Object implements AggregateFunctionRule<JdbcExpression,ParameterizedExpression>
Implements avg(x) for bigint columns while preserving Trino semantics. Trino semantics say the output should be a double but pushing down the aggregation to some databases can result in rounding of the output to a bigint.