[CP] to issue<53410420>:adjust table function serial execution strategy

This commit is contained in:
hanr881
2023-11-27 07:23:39 +00:00
committed by ob-robot
parent e0fb41718d
commit 4c009c7342
3 changed files with 20 additions and 4 deletions

View File

@ -2732,6 +2732,18 @@ int ObRawExprResolverImpl::process_datatype_or_questionmark(const ParseNode &nod
}
}
}
// force sql run das logic if sql stmt has pl question mark expr, and its type is complex type
if (OB_SUCC(ret) &&
OB_NOT_NULL(ctx_.stmt_) &&
OB_NOT_NULL(c_expr) &&
OB_NOT_NULL(session_info->get_pl_context()) &&
T_QUESTIONMARK == c_expr->get_expr_type() &&
c_expr->get_result_type().is_ext() &&
(pl::PL_RECORD_TYPE == c_expr->get_result_type().get_extend_type() ||
pl::PL_NESTED_TABLE_TYPE == c_expr->get_result_type().get_extend_type() ||
pl::PL_VARRAY_TYPE == c_expr->get_result_type().get_extend_type())) {
ctx_.stmt_->get_query_ctx()->disable_udf_parallel_ |= true;
}
}
expr = c_expr;
}