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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org