add for insert values statement split&rewrite batch optimization

This commit is contained in:
yishenglanlingzui
2023-08-14 15:12:40 +00:00
committed by ob-robot
parent 15934d24ac
commit 9b3f07d4ad
37 changed files with 1653 additions and 290 deletions

View File

@ -443,7 +443,7 @@ int ObOptimizer::check_pdml_enabled(const ObDMLStmt &stmt,
} else if (OB_ISNULL(sql_ctx = ctx_.get_exec_ctx()->get_sql_ctx())) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected null", K(ret), K(ctx_.get_exec_ctx()));
} else if (sql_ctx->multi_stmt_item_.is_batched_multi_stmt()) {
} else if (sql_ctx->is_batch_params_execute()) {
can_use_pdml = false;
// 当batch优化打开时,不支持pdml
} else if (!stmt.is_pdml_supported_stmt()) {
@ -1175,4 +1175,4 @@ int ObOptimizer::check_merge_stmt_is_update_index_rowkey(const ObSQLSessionInfo
}
return ret;
}
}