disable predicate moving into values_table_query

This commit is contained in:
jingtaoye35
2024-02-09 07:28:50 +00:00
committed by ob-robot
parent 6d5c70d2b4
commit d79c4f9031
4 changed files with 16 additions and 3 deletions

View File

@ -311,7 +311,12 @@ int ObLogExprValues::allocate_expr_post(ObAllocExprContext &ctx)
LOG_WARN("failed to construct sequence values", K(ret));
} else if (OB_FAIL(mark_probably_local_exprs())) {
LOG_WARN("failed to mark local exprs", K(ret));
} else { /*do nothing*/ }
} else if (is_values_table_) { /* defence code */
if (OB_UNLIKELY(value_desc_.count() != get_output_exprs().count())) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("defence code, EXPRESSION request output_exprs equals to value_desc", K(ret));
}
}
return ret;
}