fix shared expr canonicalize bug and const propagate bug

This commit is contained in:
yinyj17
2023-05-08 03:15:27 +00:00
committed by ob-robot
parent 49bf773c92
commit 5671bf1857
2 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,6 @@ int ObRawExprCanonicalizerImpl::pull_parallel_expr(ObRawExpr *&expr)
LOG_WARN("Pull AND or OR expression failed", K(ret));
}
}
child_expr->reset();
}
} else {
if (OB_FAIL(parent_expr->add_param_expr(sub_expr))) {

View File

@ -338,7 +338,8 @@ int ObTransformConstPropagate::do_transform(ObDMLStmt *stmt,
}
}
if (OB_SUCC(ret) && has_rollup_or_groupingsets) {
if (OB_SUCC(ret) && stmt->is_select_stmt() &&
(has_rollup_or_groupingsets || static_cast<ObSelectStmt*>(stmt)->is_scala_group_by())) {
if (OB_FAIL(const_ctx.expire_const_infos())) {
LOG_WARN("failed to expire const infos ", K(ret));
}