Fix a bug when allocate shared expr in link stmt

This commit is contained in:
xianyu-w
2023-05-06 09:38:34 +00:00
committed by ob-robot
parent 90aad03502
commit 527f1b1cbb
2 changed files with 15 additions and 0 deletions

View File

@ -1880,6 +1880,8 @@ int ObLogicalOperator::add_expr_to_ctx(ObAllocExprContext &ctx,
if (OB_ISNULL(expr)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexpected null", K(ret));
} else if (log_op_def::LOG_LINK_SCAN == get_type()) {
// do not extract shared exprs for link op
} else if (OB_FAIL(extract_shared_exprs(expr,
ctx,
0,