From 16c8fda6c83e7a355d2ee34c99e929b600a8421b Mon Sep 17 00:00:00 2001 From: GongYusen <986957406@qq.com> Date: Fri, 20 Sep 2024 10:15:23 +0000 Subject: [PATCH] [CP] Fix the issue where the physical plan ps_stmt_id of the PS statement is not displayed correctly. --- src/sql/engine/ob_physical_plan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/engine/ob_physical_plan.cpp b/src/sql/engine/ob_physical_plan.cpp index dbf1796092..381e6d7166 100644 --- a/src/sql/engine/ob_physical_plan.cpp +++ b/src/sql/engine/ob_physical_plan.cpp @@ -1319,7 +1319,7 @@ int ObPhysicalPlan::update_cache_obj_stat(ObILibCacheCtx &ctx) stat_.stmt_))) { SQL_PC_LOG(WARN, "fail to set truncate string", K(ret)); } - stat_.ps_stmt_id_ = pc_ctx.fp_result_.pc_key_.key_id_; + stat_.ps_stmt_id_ = pc_ctx.sql_ctx_.statement_id_; } else { ObTruncatedString trunc_stmt(pc_ctx.sql_ctx_.spm_ctx_.bl_key_.constructed_sql_, sql_length); if (OB_FAIL(ob_write_string(get_allocator(),