fix groupby pushdown report 4007 when upgrade

This commit is contained in:
ChangerR 2023-12-22 16:42:56 +00:00 committed by ob-robot
parent 54e55ffbde
commit 6cfbcd52b2

View File

@ -7164,6 +7164,8 @@ int ObLogPlan::check_storage_groupby_pushdown(const ObIArray<ObAggFunRawExpr *>
!pushdown_groupby_columns.empty()) {
can_push = false;
}
} else if (GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_4_3_0_0) {
can_push = false;
} else if (group_exprs.count() != 1) {
can_push = false;
} else if (aggrs.count() > 5) {