avoid generate plan for sql with max_concurrent(0)

This commit is contained in:
chimyue 2025-01-01 17:15:23 +00:00 committed by ob-robot
parent 43fc1389c8
commit a9702cf6c9

View File

@ -14541,6 +14541,10 @@ int ObDMLResolver::resolve_outline_data_hints()
hints,
qb_name))) {
LOG_WARN("failed to resolve outline data hints", K(ret));
} else if (OB_UNLIKELY(0 == global_hint.max_concurrent_)) {
ret = OB_REACH_MAX_CONCURRENT_NUM;
LOG_USER_ERROR(OB_REACH_MAX_CONCURRENT_NUM, global_hint.max_concurrent_);
LOG_WARN("SQL reach max concurrent num 0", K(ret));
} else if (hints.empty() && !global_hint.has_hint_exclude_concurrent()
&& ObGlobalHint::UNSET_MAX_CONCURRENT != global_hint.max_concurrent_) {
/* max concurrent outline, do not ignore other hint */