Fix a dblink bug and disable pdml hint for dblink
This commit is contained in:
@ -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 (OB_SUCC(ret) && ObPDMLOption::NOT_SPECIFIED != pdml_option_) { //PDML
|
||||||
if (ObPDMLOption::ENABLE == pdml_option_) {
|
if (ObPDMLOption::ENABLE == pdml_option_) {
|
||||||
PRINT_GLOBAL_HINT_STR("ENABLE_PARALLEL_DML");
|
if (!ignore_parallel) {
|
||||||
|
PRINT_GLOBAL_HINT_STR("ENABLE_PARALLEL_DML");
|
||||||
|
}
|
||||||
} else if (ObPDMLOption::DISABLE == pdml_option_) {
|
} else if (ObPDMLOption::DISABLE == pdml_option_) {
|
||||||
PRINT_GLOBAL_HINT_STR("DISABLE_PARALLEL_DML");
|
PRINT_GLOBAL_HINT_STR("DISABLE_PARALLEL_DML");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -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))) {
|
} else if (OB_FAIL(ObOptimizerUtil::remove_item(stmt->get_subquery_exprs(), subq_expr))) {
|
||||||
LOG_WARN("remove expr failed", K(ret));
|
LOG_WARN("remove expr failed", K(ret));
|
||||||
} else {
|
} else {
|
||||||
ObConstRawExpr *c_expr = NULL;
|
ObRawExpr *c_expr = NULL;
|
||||||
if (OB_FAIL(ObRawExprUtils::build_const_int_expr(*expr_factory, ObIntType, (T_OP_EXISTS == expr->get_expr_type()), c_expr))) {
|
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));
|
LOG_WARN("failed to create expr", K(ret));
|
||||||
} else if (OB_ISNULL(c_expr)) {
|
} else if (OB_ISNULL(c_expr)) {
|
||||||
ret = OB_ERR_UNEXPECTED;
|
ret = OB_ERR_UNEXPECTED;
|
||||||
|
|||||||
Reference in New Issue
Block a user