From 8efeef908d9df5964441fed24ffa4e801f1dc8eb Mon Sep 17 00:00:00 2001 From: obdev Date: Thu, 9 Feb 2023 16:36:19 +0000 Subject: [PATCH] disable single side hash to NULL strong sharding side for set --- src/sql/optimizer/ob_select_log_plan.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sql/optimizer/ob_select_log_plan.cpp b/src/sql/optimizer/ob_select_log_plan.cpp index fe22e71053..e77cece309 100644 --- a/src/sql/optimizer/ob_select_log_plan.cpp +++ b/src/sql/optimizer/ob_select_log_plan.cpp @@ -2965,7 +2965,9 @@ int ObSelectLogPlan::check_if_set_match_rehash(const EqualSets &equal_sets, ObSEArray target_part_keys; ObShardingInfo *target_sharding = NULL; is_match_single_side_hash = false; - if (OB_ISNULL(target_sharding = target_child.get_sharding())) { + if (NULL == target_child.get_strong_sharding()) { + /* do nothing */ + } else if (OB_ISNULL(target_sharding = target_child.get_sharding())) { ret = OB_ERR_UNEXPECTED; LOG_WARN("get unexpected null", K(ret)); } else if (!target_sharding->is_distributed_without_table_location() ||