Fix hint material related cases

This commit is contained in:
hwx65
2024-01-10 04:13:37 +00:00
committed by ob-robot
parent 890706dc6a
commit 13aeccebcd
2 changed files with 18 additions and 4 deletions

View File

@ -636,8 +636,16 @@ int ObStaticEngineCG::check_vectorize_supported(bool &support,
// dependency and breaks rownum's defination.
//
ObLogicalOperator *rownum_op = NULL;
if (OB_SUCC(ret) && OB_SUCC(op->find_rownum_expr(op->get_op_id(), rownum_op))
&& rownum_op != NULL && rownum_op != op) {
for (int64_t i = 0; rownum_op == NULL && OB_SUCC(ret) && i < op->get_num_of_child(); i++) {
ObLogicalOperator *child = op->get_child(i);
if (OB_ISNULL(child)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("op child is null", K(ret));
} else if (OB_FAIL(child->find_rownum_expr(op->get_op_id(), rownum_op))) {
LOG_WARN("find rownum expr error", K(ret));
}
}
if (NULL != rownum_op) {
LOG_DEBUG("rownum expr is in count operator's subplan tree. Stop vectorization exec");
disable_vectorize = true;
}