xzj7019 commented on code in PR #44789:
URL: https://github.com/apache/doris/pull/44789#discussion_r1891079419


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/DateFormat.java:
##########
@@ -74,4 +82,30 @@ public List<FunctionSignature> getSignatures() {
     public <R, C> R accept(ExpressionVisitor<R, C> visitor, C context) {
         return visitor.visitDateFormat(this, context);
     }
+
+    @Override
+    public boolean isMonotonic() {
+        Expression format = child(1);
+        if (!(format instanceof VarcharLiteral)) {
+            return false;
+        }
+        VarcharLiteral varcharLiteral = (VarcharLiteral) format;
+        String str = varcharLiteral.getValue().replace(" ", "");

Review Comment:
   does this action not match the format "yyyy-MM-dd HH:mm:ss"?



-- 
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]

Reply via email to