From 8d56362278bf02c3ddef1179a81b5fef994f360e Mon Sep 17 00:00:00 2001 From: obdev Date: Tue, 12 Mar 2024 04:26:21 +0000 Subject: [PATCH] [CP] fix: fix the bug of spf group-rescan induced by hash-map optimize --- src/sql/engine/subquery/ob_subplan_filter_op.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/engine/subquery/ob_subplan_filter_op.cpp b/src/sql/engine/subquery/ob_subplan_filter_op.cpp index 40b1e18eb..08b2d8def 100644 --- a/src/sql/engine/subquery/ob_subplan_filter_op.cpp +++ b/src/sql/engine/subquery/ob_subplan_filter_op.cpp @@ -665,7 +665,8 @@ int ObSubPlanFilterOp::inner_open() MY_SPEC.enable_px_batch_rescans_.at(i)) { enable_left_px_batch_ = true; } - if (!MY_SPEC.exec_param_idxs_inited_) { + if (!MY_SPEC.exec_param_idxs_inited_ || MY_SPEC.enable_das_group_rescan_) { + // spf group rescan can't use hash-map optimize, it will induces skip-scan, which will induces correctness problem //unittest or old version, do not init hashmap } else if (OB_FAIL(iter->init_mem_entity())) { LOG_WARN("failed to init mem_entity", K(ret));