Fixing conditional statements about direct-insert

This commit is contained in:
obdev
2023-02-09 13:46:30 +00:00
committed by ob-robot
parent c698e9ced7
commit 47f6c569cc

View File

@ -2075,7 +2075,8 @@ int ObDelUpdLogPlan::is_direct_insert_into_select(bool &result)
} else if (stmt::T_INSERT == stmt->stmt_type_
&& static_cast<const ObInsertStmt*>(stmt)->value_from_select()
&& GCONF._ob_enable_direct_load
&& get_optimizer_context().get_global_hint().has_append()) {
&& get_optimizer_context().get_global_hint().has_append()
&& get_optimizer_context().use_pdml()) { // Currently direct-insert only supports pdml
// In direct-insert mode, index will be built by direct loader
bool auto_commit = false;
if (OB_FAIL(session_info->get_autocommit(auto_commit))) {