Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Jan 2, 2025
1 parent 01195fd commit 440cd91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public Expression withConstantArgs(Expression literal) {

@Override
public boolean isMonotonic(Literal lower, Literal upper) {
// Both upward and downward casting of date types satisfy monotonicity.
if (child().getDataType() instanceof DateLikeType && targetType instanceof DateLikeType) {
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.doris.nereids.trees.expressions.literal.BigIntLiteral;
import org.apache.doris.nereids.trees.expressions.literal.Literal;

/** monotonicity for from_xx */
/** monotonicity for from_{xx}second */
public interface FromSecondMonotonic extends Monotonic {
@Override
default boolean isMonotonic(Literal lower, Literal upper) {
Expand Down

0 comments on commit 440cd91

Please sign in to comment.