add inner_same_as for udf func and remove useless GET_MIN_CLUSTER_VERSION

This commit is contained in:
Larry955
2022-11-16 07:35:39 +00:00
committed by wangzelin.wzl
parent 99d34dc07b
commit 8aee7d972f
34 changed files with 279 additions and 527 deletions

View File

@ -193,16 +193,7 @@ DEFINE_DESERIALIZE(ObDesExecContext)
if (OB_SUCC(ret) && !OB_ISNULL(my_session_) && !OB_ISNULL(GCTX.sql_engine_)) {
ObPCMemPctConf pc_mem_conf;
if (OB_FAIL(my_session_->get_pc_mem_conf(pc_mem_conf))) {
if (OB_ENTRY_NOT_EXIST == ret && GET_MIN_CLUSTER_VERSION() < CLUSTER_VERSION_2100) {
/**
* ignore OB_ENTRY_NOT_EXIST if in upgrade process, this session must come from
* 1470 or 2000, they can not generate remote / distributed plan with foreign
* key operation.
*/
ret = OB_SUCCESS;
} else {
LOG_WARN("failed to get pc mem conf", K(ret));
}
LOG_WARN("failed to get pc mem conf", K(ret));
} else {
my_session_->set_plan_cache_manager(GCTX.sql_engine_->get_plan_cache_manager());
}