Fix a dblink bug and disable pdml hint for dblink

This commit is contained in:
xianyu-w
2023-03-09 12:47:20 +00:00
committed by ob-robot
parent 3b47aa7ccd
commit ae6eea62f1
2 changed files with 5 additions and 3 deletions

View File

@ -448,7 +448,9 @@ int ObGlobalHint::print_global_hint(PlanText &plan_text, const bool ignore_paral
}
if (OB_SUCC(ret) && ObPDMLOption::NOT_SPECIFIED != pdml_option_) { //PDML
if (ObPDMLOption::ENABLE == pdml_option_) {
if (!ignore_parallel) {
PRINT_GLOBAL_HINT_STR("ENABLE_PARALLEL_DML");
}
} else if (ObPDMLOption::DISABLE == pdml_option_) {
PRINT_GLOBAL_HINT_STR("DISABLE_PARALLEL_DML");
} else {

View File

@ -1463,8 +1463,8 @@ int ObTransformSimplifySubquery::eliminate_subquery_in_exists(ObDMLStmt *stmt,
} else if (OB_FAIL(ObOptimizerUtil::remove_item(stmt->get_subquery_exprs(), subq_expr))) {
LOG_WARN("remove expr failed", K(ret));
} else {
ObConstRawExpr *c_expr = NULL;
if (OB_FAIL(ObRawExprUtils::build_const_int_expr(*expr_factory, ObIntType, (T_OP_EXISTS == expr->get_expr_type()), c_expr))) {
ObRawExpr *c_expr = NULL;
if (OB_FAIL(ObRawExprUtils::build_const_bool_expr(expr_factory, c_expr, (T_OP_EXISTS == expr->get_expr_type())))) {
LOG_WARN("failed to create expr", K(ret));
} else if (OB_ISNULL(c_expr)) {
ret = OB_ERR_UNEXPECTED;