[CP] [CP] Fix view synonym bug

This commit is contained in:
xianyu-w
2024-02-06 06:12:01 +00:00
committed by ob-robot
parent f959608a49
commit f1c9be6b9f
27 changed files with 48 additions and 54 deletions

View File

@ -6701,9 +6701,9 @@ int ObSelectLogPlan::init_wf_topn_option(WinFuncOpHelper &win_func_helper, bool
}
if (OB_FAIL(ret) || !win_func_helper.enable_topn_) {
//do nothing
} else if (check_wf_part_topn_supported(winfunc_exprs,
win_func_helper.partition_exprs_,
win_func_helper.enable_topn_)) {
} else if (OB_FAIL(check_wf_part_topn_supported(winfunc_exprs,
win_func_helper.partition_exprs_,
win_func_helper.enable_topn_))) {
LOG_WARN("check partition topn supported failed", K(ret));
} else if (win_func_helper.enable_topn_) {
for (int64_t i = 0; OB_SUCC(ret) && NULL == win_func_helper.topn_const_ && i < filter_exprs.count(); ++i) {