From efc242224a8f8720342f91011264cfd19402b64f Mon Sep 17 00:00:00 2001 From: obdev Date: Wed, 18 Sep 2024 05:56:22 +0000 Subject: [PATCH] [CP] do not record monitor when phy_plan_ctx_ not set --- src/sql/engine/ob_operator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/engine/ob_operator.cpp b/src/sql/engine/ob_operator.cpp index f1e8f0fda..327502fee 100644 --- a/src/sql/engine/ob_operator.cpp +++ b/src/sql/engine/ob_operator.cpp @@ -1174,7 +1174,7 @@ int ObOperator::submit_op_monitor_node() op_monitor_info_.db_time_ = 1000 * db_time; op_monitor_info_.block_time_ = 1000 * op_monitor_info_.block_time_; - if (list && spec_.plan_) { + if (list && spec_.plan_ && ctx_.get_physical_plan_ctx()) { if (spec_.plan_->get_phy_plan_hint().monitor_ || (ctx_.get_my_session()->is_user_session() && (spec_.plan_->get_px_dop() > 1