starocean999 commented on code in PR #30459:
URL: https://github.com/apache/doris/pull/30459#discussion_r1469035697


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/SubqueryToApply.java:
##########
@@ -410,6 +417,9 @@ private LogicalPlan addApply(SubqueryExpr subquery, 
LogicalPlan childPlan,
                         ? 
ImmutableList.of(subquery.getQueryPlan().getOutput().get(0)) : 
ImmutableList.of())
                     .build();
 
+        if (subqueryToMarkJoinSlot.get(subquery).isPresent() || 
needAddScalarSubqueryOutputToProjects) {

Review Comment:
   if using filter's output to create a new top project, this is not needed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to