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


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/PushDownAggThroughJoinOnPkFk.java:
##########
@@ -236,6 +240,18 @@ private LogicalAggregate<?> 
eliminatePrimaryOutput(LogicalAggregate<?> agg, Plan
                                     : e);
                 }
             }
+            if (expression instanceof Alias

Review Comment:
   primaryToForeignDeps only guarantees a bijective functional dependency, not 
value equality. Therefore, rewriting ANY_VALUE(pk) to ANY_VALUE(fk) may produce 
incorrect results unless the two slots belong to the same equality set.



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