morrySnow commented on code in PR #29418: URL: https://github.com/apache/doris/pull/29418#discussion_r1440328938
########## fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/Any.java: ########## @@ -55,6 +56,15 @@ public boolean equals(Object o) { return true; } + /** + * Equals with direction + * Since the equals method in Any is always true, that means Any is equals to others, but not equal in reverse. + * The expression with Any should always be the first argument. + */ + public static boolean equals(Expression expressionWithAny, Expression target) { Review Comment: why add this function? -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org