Skip to content

Commit

Permalink
fix complie
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Dec 24, 2024
1 parent e720605 commit fb99231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -801,9 +801,6 @@ private EvaluateRangeResult computeMonotonicFunctionRange(EvaluateRangeResult re
return new EvaluateRangeResult((Expression) func, ImmutableMap.of((Expression) func,
context.rangeMap.get(func)), result.childrenResult);
}
if (!func.isMonotonic()) {
return result;
}
int childIndex = func.getMonotonicFunctionChildIndex();
Expression funcChild = func.child(childIndex);
boolean isNullable = partitionSlotContainsNull.getOrDefault(funcChild, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.doris.nereids.trees.expressions.functions.ExplicitlyCastableSignature;
import org.apache.doris.nereids.trees.expressions.functions.Monotonic;
import org.apache.doris.nereids.trees.expressions.functions.PropagateNullLiteral;
import org.apache.doris.nereids.trees.expressions.literal.Literal;
import org.apache.doris.nereids.trees.expressions.literal.VarcharLiteral;
import org.apache.doris.nereids.trees.expressions.shape.BinaryExpression;
import org.apache.doris.nereids.trees.expressions.visitor.ExpressionVisitor;
Expand Down Expand Up @@ -84,7 +85,7 @@ public <R, C> R accept(ExpressionVisitor<R, C> visitor, C context) {
}

@Override
public boolean isMonotonic() {
public boolean isMonotonic(Literal lower, Literal upper) {
Expression format = child(1);
if (!(format instanceof VarcharLiteral)) {
return false;
Expand Down

0 comments on commit fb99231

Please sign in to comment.