fix pdml cannot be enabled after rewrite generate joined table

This commit is contained in:
obdev
2023-10-16 02:40:26 +00:00
committed by ob-robot
parent c976f0e263
commit 62e21b0cea
5 changed files with 25 additions and 1 deletions

View File

@ -338,6 +338,7 @@ int ObOptimizer::check_pdml_enabled(const ObDMLStmt &stmt,
!static_cast< const ObInsertStmt &>(stmt).value_from_select()) {
can_use_pdml = false;
} else if ((stmt.is_update_stmt() || stmt.is_delete_stmt())
&& static_cast<const ObDelUpdStmt &>(stmt).dml_source_from_join()
&& static_cast<const ObDelUpdStmt &>(stmt).is_dml_table_from_join()) {
can_use_pdml = false;
} else if (OB_FAIL(check_pdml_supported_feature(static_cast<const ObDelUpdStmt&>(stmt),