[CP] [FEAT MERGE]support dblink udf

This commit is contained in:
seuwebber
2024-03-21 04:45:36 +00:00
committed by ob-robot
parent 6d7fab4ff1
commit 5bdd7e5bd1
61 changed files with 1065 additions and 401 deletions

View File

@ -762,6 +762,9 @@ int ObSQLUtils::se_calc_const_expr(ObSQLSessionInfo *session,
exec_ctx.set_physical_plan_ctx(&phy_plan_ctx);
if (NULL != out_ctx) {
exec_ctx.set_sql_ctx(out_ctx->get_sql_ctx());
if (NULL != out_ctx->get_original_package_guard()) {
exec_ctx.set_package_guard(out_ctx->get_original_package_guard());
}
}
void *frame_buf = NULL;
ObPreCalcExprFrameInfo *pre_calc_frame = NULL;
@ -801,6 +804,10 @@ int ObSQLUtils::se_calc_const_expr(ObSQLSessionInfo *session,
}
}
}
if (NULL != out_ctx && NULL != out_ctx->get_original_package_guard()) {
// avoid out_ctx.package_guard_ be freed
exec_ctx.set_package_guard(NULL);
}
}
}
return ret;