morrySnow commented on code in PR #23692: URL: https://github.com/apache/doris/pull/23692#discussion_r1311229754
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/rewrite/PredicatePropagation.java: ########## @@ -102,8 +102,14 @@ private Expression replaceSlot(Expression expr, DataType originDataType) { return expr.rewriteUp(e -> { if (isDataTypeValid(originDataType, leftSlotEqualToRightSlot)) { if (ExpressionUtils.isTwoExpressionEqualWithCast(e, leftSlotEqualToRightSlot.child(0))) { + if (!leftSlotEqualToRightSlot.child(1).getDataType().equals(e.getDataType())) { Review Comment: add some ut case please~ -- 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