Fix BITMAP_UNION_COUNT couldn't hit rollup table (#2655)

This commit is contained in:
kangkaisen
2020-01-03 19:27:40 +08:00
committed by ZHAO Chun
parent 5dff936243
commit 458ed55fa5

View File

@ -555,7 +555,8 @@ public class SingleNodePlanner {
returnColumnValidate = false;
break;
}
} else if (aggExpr.getFnName().getFunction().equalsIgnoreCase(FunctionSet.BITMAP_UNION)) {
} else if (aggExpr.getFnName().getFunction().equalsIgnoreCase(FunctionSet.BITMAP_UNION)
|| aggExpr.getFnName().getFunction().equalsIgnoreCase(FunctionSet.BITMAP_UNION_COUNT)) {
if (col.getAggregationType() != AggregateType.BITMAP_UNION) {
turnOffReason = "Aggregate Operator not match: BITMAP_UNION <--> " + col.getAggregationType();
returnColumnValidate = false;