[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

@ -272,16 +272,17 @@ int ObPLPackageState::make_pkg_var_kv_value(ObPLExecCtx &ctx, ObObj &var_val, in
ret = OB_ERR_UNEXPECTED;
LOG_WARN("sql session is null.", K(ret));
} else {
pl::ObPLPackageGuard package_guard(sql_session->get_effective_tenant_id());
pl::ObPLPackageGuard *package_guard = NULL;
CK (OB_NOT_NULL(sql_session->get_pl_engine()));
OZ (package_guard.init());
OZ (ctx.exec_ctx_->get_package_guard(package_guard));
CK (OB_NOT_NULL(package_guard));
if (OB_SUCC(ret)) {
const ObPLVar *var = NULL;
ObPLResolveCtx resolve_ctx(*ctx.allocator_,
*sql_session,
*ctx.exec_ctx_->get_sql_ctx()->schema_guard_,
package_guard,
*package_guard,
*ctx.exec_ctx_->get_sql_proxy(),
false /*is_ps*/);
OZ (sql_session->get_pl_engine()