xzj7019 commented on code in PR #45928:
URL: https://github.com/apache/doris/pull/45928#discussion_r1900591718
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/Cast.java:
##########
@@ -117,4 +120,27 @@ public boolean equals(Object o) {
public int hashCode() {
return Objects.hash(super.hashCode(), targetType);
}
+
+ @Override
+ public boolean isPositive() {
+ return true;
+ }
+
+ @Override
+ public int getMonotonicFunctionChildIndex() {
+ return 0;
+ }
+
+ @Override
+ public Expression withConstantArgs(Expression literal) {
+ return new Cast(literal, targetType, isExplicitType);
+ }
+
+ @Override
+ public boolean isMonotonic(Literal lower, Literal upper) {
Review Comment:
pls add consideration here
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]