diff --git a/fe/src/com/baidu/palo/analysis/AggregateInfo.java b/fe/src/com/baidu/palo/analysis/AggregateInfo.java index e04b24ccdae8f2..c0db99e9241210 100644 --- a/fe/src/com/baidu/palo/analysis/AggregateInfo.java +++ b/fe/src/com/baidu/palo/analysis/AggregateInfo.java @@ -528,8 +528,6 @@ private void createSecondPhaseAggInfo( // SUM(DISTINCT ) -> SUM(); // (MIN(DISTINCT ...) and MAX(DISTINCT ...) have their DISTINCT turned // off during analysis, and AVG() is changed to SUM()/COUNT()) - Preconditions.checkState( - inputExpr.getFnName().getFunction().equalsIgnoreCase("SUM")); Expr aggExprParam = new SlotRef(inputDesc.getSlots().get(origGroupingExprs.size())); aggExpr = new FunctionCallExpr(inputExpr.getFnName(), Lists.newArrayList(aggExprParam)); }