fix some bugs

This commit is contained in:
chimyue
2023-05-26 06:47:00 +00:00
committed by ob-robot
parent f244dded1a
commit 70ed82ee89
6 changed files with 27 additions and 138 deletions

View File

@ -5630,10 +5630,6 @@ int ObStaticEngineCG::fill_aggr_info(ObAggFunRawExpr &raw_expr,
aggr_info.rollup_idx_ = expr_idx + group_exprs->count();
}
}
if (OB_SUCC(ret) && !match) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected status: the argument of grouping is invalid", K(ret));
}
}
// The arguments of grouping_id are the indexs in rollup exprs.
@ -5653,11 +5649,6 @@ int ObStaticEngineCG::fill_aggr_info(ObAggFunRawExpr &raw_expr,
LOG_WARN("push_back fail", K(ret));
}
}
if (OB_SUCC(ret) && expr_idx == OB_INVALID_INDEX) {
ret = OB_ERR_WRONG_FIELD_WITH_GROUP;
LOG_WARN("unexpected status: the argument of grouping_id is invalid");
}
}
}