From cbad8951ec8eece7f61c2e5c11ac92e8a96dd6ca Mon Sep 17 00:00:00 2001 From: 924060929 <924060929@qq.com> Date: Thu, 31 Oct 2024 14:49:09 +0800 Subject: [PATCH] fix --- .../trees/expressions/literal/format/DateTimeChecker.java | 3 +-- .../trees/expressions/literal/format/StringInspect.java | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/DateTimeChecker.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/DateTimeChecker.java index 61302b276f09dc..7d60a01c0413c7 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/DateTimeChecker.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/DateTimeChecker.java @@ -43,8 +43,7 @@ private DateTimeChecker() { chars(DateLiteral.punctuations::contains), digit(1, 2) // day ) - ), - option(ch('Z')) + ) ), // datetime and("DateTime", diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/StringInspect.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/StringInspect.java index cc66e4db866233..b1429f460f731c 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/StringInspect.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/literal/format/StringInspect.java @@ -17,7 +17,9 @@ package org.apache.doris.nereids.trees.expressions.literal.format; -/** StringInspect */ +/** + * StringInspect, a simple lexer can save and move the index + */ public class StringInspect { public final String str; private int index;