diff --git a/fe/fe-core/src/test/java/org/apache/doris/nereids/rules/expression/PredicatesSplitterTest.java b/fe/fe-core/src/test/java/org/apache/doris/nereids/rules/expression/PredicatesSplitterTest.java index 4a8f2e981ef116..7c3055b9cef70e 100644 --- a/fe/fe-core/src/test/java/org/apache/doris/nereids/rules/expression/PredicatesSplitterTest.java +++ b/fe/fe-core/src/test/java/org/apache/doris/nereids/rules/expression/PredicatesSplitterTest.java @@ -24,6 +24,7 @@ import org.apache.doris.nereids.trees.expressions.Expression; import org.apache.doris.nereids.trees.expressions.Slot; import org.apache.doris.nereids.trees.expressions.SlotReference; +import org.apache.doris.nereids.trees.expressions.literal.BooleanLiteral; import com.google.common.collect.Lists; import com.google.common.collect.Maps; @@ -68,21 +69,21 @@ private void assetEquals(String expression, Expression equalExpression = replaceUnboundSlot(PARSER.parseExpression(expectedEqualExpr), mem); Assertions.assertEquals(equalExpression, splitPredicate.getEqualPredicate()); } else { - Assertions.assertNull(splitPredicate.getEqualPredicate()); + Assertions.assertEquals(splitPredicate.getEqualPredicate(), BooleanLiteral.TRUE); } if (!StringUtils.isEmpty(expectedRangeExpr)) { Expression rangeExpression = replaceUnboundSlot(PARSER.parseExpression(expectedRangeExpr), mem); Assertions.assertEquals(rangeExpression, splitPredicate.getRangePredicate()); } else { - Assertions.assertNull(splitPredicate.getRangePredicate()); + Assertions.assertEquals(splitPredicate.getRangePredicate(), BooleanLiteral.TRUE); } if (!StringUtils.isEmpty(expectedResidualExpr)) { Expression residualExpression = replaceUnboundSlot(PARSER.parseExpression(expectedResidualExpr), mem); Assertions.assertEquals(residualExpression, splitPredicate.getResidualPredicate()); } else { - Assertions.assertNull(splitPredicate.getResidualPredicate()); + Assertions.assertEquals(splitPredicate.getResidualPredicate(), BooleanLiteral.TRUE); } }