提交 0f38ab73 编写于 作者: J jz0 提交者: wangzelin.wzl

Fix outerjoin on condition pushdown parent_namespace_stmt issue

上级 9c76339e
...@@ -356,8 +356,9 @@ int ObTransformSimplify::push_down_on_condition(ObDMLStmt *stmt, ...@@ -356,8 +356,9 @@ int ObTransformSimplify::push_down_on_condition(ObDMLStmt *stmt,
LOG_WARN("failed to update column item rel id", K(ret)); LOG_WARN("failed to update column item rel id", K(ret));
} }
if (OB_FAIL(ret)) { if (OB_SUCC(ret)) {
} else if (OB_FAIL(child_stmt->adjust_subquery_stmt_parent(stmt, child_stmt))) { child_stmt->set_parent_namespace_stmt(stmt->get_parent_namespace_stmt());
if (OB_FAIL(child_stmt->adjust_subquery_stmt_parent(stmt, child_stmt))) {
LOG_WARN("failed to adjust subquery stmt parent", K(ret)); LOG_WARN("failed to adjust subquery stmt parent", K(ret));
} else if (OB_FAIL(stmt->get_column_exprs(join_table->right_table_->table_id_, old_column_exprs))) { } else if (OB_FAIL(stmt->get_column_exprs(join_table->right_table_->table_id_, old_column_exprs))) {
LOG_WARN("failed to get column exprs", K(ret)); LOG_WARN("failed to get column exprs", K(ret));
...@@ -369,6 +370,7 @@ int ObTransformSimplify::push_down_on_condition(ObDMLStmt *stmt, ...@@ -369,6 +370,7 @@ int ObTransformSimplify::push_down_on_condition(ObDMLStmt *stmt,
} else if (OB_FAIL(stmt->formalize_stmt(ctx_->session_info_))) { } else if (OB_FAIL(stmt->formalize_stmt(ctx_->session_info_))) {
LOG_WARN("failed to formalize stmt", K(ret)); LOG_WARN("failed to formalize stmt", K(ret));
} }
}
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册