presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/MultipleDistinctAggregationToMarkDistinct.java/MultipleDistinctAggregationToMarkDistinct/hasMixedDistinctAndNonDistincts
class MultipleDistinctAggregationToMarkDistinct:    private static boolean hasMixedDistinctAndNonDistincts(AggregationNode aggregationNode)
    {
        long distincts = aggregationNode.getAggregations()
                .values().stream()
                .filter(Aggregation::isDistinct)
                .count();

        return distincts > 0 && distincts < aggregationNode.getAggregations().size();
    }