fix some optimizer bugs

This commit is contained in:
chimyue
2023-05-10 05:19:22 +00:00
committed by ob-robot
parent a4d3658f03
commit 5eef4de86d
10 changed files with 43 additions and 26 deletions

View File

@ -606,7 +606,7 @@ int ObOptimizer::init_parallel_policy(ObDMLStmt &stmt, const ObSQLSessionInfo &s
} else if (ObGlobalHint::UNSET_PARALLEL != session_force_parallel_dop) {
ctx_.set_parallel(session_force_parallel_dop);
ctx_.set_parallel_rule(PXParallelRule::SESSION_FORCE_PARALLEL);
} else if (session_enable_manual_dop) {
} else if (session_enable_manual_dop || ctx_.get_global_hint().enable_manual_dop()) {
ctx_.set_parallel_rule(PXParallelRule::MANUAL_TABLE_DOP);
} else {
ctx_.set_parallel_rule(PXParallelRule::USE_PX_DEFAULT);