public static SqlAggregation from(QueryDataType operandType, boolean distinct) {
        SqlAggregation aggregation = from(operandType);
        return distinct ? new DistinctSqlAggregation(aggregation) : aggregation;
    }
@Test
    @Parameters(method = "values_distinct")
    public void test_accumulateDistinct(QueryDataType operandType, List<Object> values, Object expected) {
        SqlAggregation aggregation = AvgSqlAggregations.from(operandType, true);
        aggregation.accumulate(null);
        values.forEach(aggregation::accumulate);

        assertThat(aggregation.collect()).isEqualTo(expected);
    }