feiniaofeiafei commented on code in PR #42199:
URL: https://github.com/apache/doris/pull/42199#discussion_r1963717032


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/PullUpPredicates.java:
##########
@@ -379,4 +397,16 @@ private ImmutableSet<Expression> 
getFiltersFromUnionConstExprs(LogicalUnion unio
         }
         return ImmutableSet.copyOf(filtersFromConstExprs);
     }
+
+    private Map<Slot, Expression> generateMap(List<NamedExpression> 
namedExpressions) {
+        Map<Slot, Expression> replaceMap = new 
LinkedHashMap<>(namedExpressions.size());
+        for (NamedExpression namedExpression : namedExpressions) {
+            if (namedExpression instanceof Alias) {
+                replaceMap.putIfAbsent(namedExpression.toSlot(), 
namedExpression.child(0));
+            } else if (namedExpression instanceof SlotReference) {
+                replaceMap.putIfAbsent((Slot) namedExpression, 
namedExpression);

Review Comment:
   the qualifier may be different when there is a LogicalSubQueryAlias pushed 
to the LogicalProject.



-- 
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