shardingsphere-infra/shardingsphere-infra-binder/src/main/java/org/apache/shardingsphere/infra/binder/statement/dml/SelectStatementContext.java
/**
     * Judge whether contains partial distinct aggregation.
     * 
     * @return whether contains partial distinct aggregation
     */
Judge whether contains partial distinct aggregation.

@return whether contains partial distinct aggregation
Judge whether contains partial distinct aggregation . @return whether contains partial distinct aggregation
public boolean isContainsPartialDistinctAggregation() {
        Collection<Projection> aggregationProjections = projectionsContext.getProjections().stream().filter(each -> each instanceof AggregationProjection).collect(Collectors.toList());
        Collection<AggregationDistinctProjection> aggregationDistinctProjections = projectionsContext.getAggregationDistinctProjections();
        return aggregationProjections.size() > 1 && aggregationDistinctProjections.size() > 0 && aggregationProjections.size() != aggregationDistinctProjections.size();
    }
public boolean isContainsPartialDistinctAggregation ( ) { Collection < Projection > aggregationProjections = projectionsContext . getProjections ( ) . stream ( ) . filter ( each -> each instanceof AggregationProjection ) . collect ( Collectors . toList ( ) ) ; Collection < AggregationDistinctProjection > aggregationDistinctProjections = projectionsContext . getAggregationDistinctProjections ( ) ; return aggregationProjections . size ( ) > 1 && aggregationDistinctProjections . size ( ) > 0 && aggregationProjections . size ( ) != aggregationDistinctProjections . size ( ) ; }
Judge whether contains partial distinct aggregation.
Judge whether contains partial distinct aggregation .