[CP] diable pulling up where-subquery with order by

This commit is contained in:
AA-tuliwei-BB 2024-11-25 21:48:48 +00:00 committed by ob-robot
parent 8ad6cf0d10
commit 39b136ca03

View File

@ -11219,6 +11219,8 @@ int ObTransformUtils::check_correlated_exprs_can_pullup_for_set(const ObIArray<O
if (subquery.get_set_op() != ObSelectStmt::UNION || subquery.is_recursive_union()) {
//TODO: pullup correlated exprs for intersect and minus
can_pullup = !subquery.is_set_distinct();
} else if (subquery.has_order_by()) {
can_pullup = false;
}
ObSEArray<ObRawExpr*, 4> left_select_exprs;
ObSEArray<ObRawExpr*, 4> right_select_exprs;