[CP][FEAT MERGE]SDO_GEOMETRY & MYSQL GIS EXPR IMPLEMENT

This commit is contained in:
wu-xingying
2024-04-08 13:45:07 +00:00
committed by ob-robot
parent 766a7c6c3c
commit 34c3718f40
344 changed files with 39680 additions and 3076 deletions

View File

@ -221,9 +221,16 @@ int ObExprCollectionConstruct::eval_collection_construct(const ObExpr &expr,
const pl::ObCollectionType *collection_type = NULL;
pl::ObElemDesc elem_desc;
pl::ObPLPackageGuard package_guard(session->get_effective_tenant_id());
ObSchemaGetterGuard *schema_guard = NULL;
// if called by check_default_value in ddl resolver, no sql ctx, get guard from session cache
if (OB_ISNULL(exec_ctx.get_sql_ctx()) || OB_ISNULL(exec_ctx.get_sql_ctx()->schema_guard_)) {
schema_guard = &session->get_cached_schema_guard_info().get_schema_guard();
} else {
schema_guard = exec_ctx.get_sql_ctx()->schema_guard_;
}
pl::ObPLResolveCtx resolve_ctx(alloc,
*session,
*(exec_ctx.get_sql_ctx()->schema_guard_),
*(schema_guard),
package_guard,
*(exec_ctx.get_sql_proxy()),
false);