fix bug during the upgrade, it is necessary to disable the generation of plans with trans_info_expr

This commit is contained in:
yishenglanlingzui
2023-05-09 02:47:24 +00:00
committed by ob-robot
parent fda1d9f41b
commit c22ebcba79

View File

@ -729,6 +729,7 @@ int ObLogTableScan::allocate_lookup_trans_info_expr()
LOG_WARN("unexpected null", K(ret)); LOG_WARN("unexpected null", K(ret));
} else if (index_back_ && } else if (index_back_ &&
opt_ctx->is_strict_defensive_check() && opt_ctx->is_strict_defensive_check() &&
GET_MIN_CLUSTER_VERSION() >= CLUSTER_VERSION_4_2_0_0 &&
nullptr == trans_info_expr_) { nullptr == trans_info_expr_) {
if (OB_FAIL(OB_FAIL(ObOptimizerUtil::generate_pseudo_trans_info_expr(*opt_ctx, if (OB_FAIL(OB_FAIL(ObOptimizerUtil::generate_pseudo_trans_info_expr(*opt_ctx,
index_name_, index_name_,