to issue<49845698>:fix pdml with udf report 6220

This commit is contained in:
hanr881
2023-05-23 05:17:26 +00:00
committed by ob-robot
parent 54fbf31d94
commit 59591c9ea2
10 changed files with 50 additions and 28 deletions

View File

@ -660,6 +660,11 @@ int ObOptimizer::check_whether_contain_nested_sql(const ObDMLStmt &stmt)
{
int ret = OB_SUCCESS;
const ObDelUpdStmt *del_upd_stmt = nullptr;
// dml + select need run das path
if (!stmt.get_query_ctx()->disable_udf_parallel_ && stmt.get_query_ctx()->udf_has_select_stmt_) {
stmt.get_query_ctx()->disable_udf_parallel_ |= ((stmt.is_select_stmt() && stmt.has_for_update())
|| (stmt.is_dml_write_stmt()));
}
if (stmt.get_query_ctx()->disable_udf_parallel_) {
ctx_.set_has_pl_udf(true);
}