fix: fix outline not reproducible error for coalesce subquery

This commit is contained in:
PatZhuang 2024-11-06 11:44:57 +00:00 committed by ob-robot
parent 2e5a3cf0d0
commit b155155f74

View File

@ -97,12 +97,13 @@ int ObTransformSubqueryCoalesce::transform_one_stmt(common::ObIArray<ObParentDML
} else if (OB_FAIL(append(ctx_->equal_param_constraints_, cost_based_equal_infos))) {
LOG_WARN("failed to append equal infos", K(ret));
}
if (OB_SUCC(ret)) {
trans_happened = rule_based_trans_happened || is_happened;
if (OB_FAIL(try_trans_helper.finish(trans_happened, stmt->get_query_ctx(), ctx_))) {
LOG_WARN("failed to finish try trans helper", K(ret));
}
if (OB_FAIL(ret)) {
} else if (OB_FAIL(try_trans_helper.finish(rule_based_trans_happened || is_happened,
stmt->get_query_ctx(),
ctx_))) {
LOG_WARN("failed to finish try trans helper", K(ret));
} else if (rule_based_trans_happened || is_happened) {
trans_happened = true;
}
} while(OB_SUCC(ret) && is_happened);
}