diff --git a/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFormatterUtil.java b/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFormatterUtil.java index 02fb3a6915..d351a8808a 100644 --- a/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFormatterUtil.java +++ b/core/src/main/java/org/opensearch/sql/expression/datetime/DateTimeFormatterUtil.java @@ -79,6 +79,8 @@ interface DateTimeFormatHandler { .build(); private static final Pattern pattern = Pattern.compile("%."); + private static final Pattern CHARACTERS_WITH_NO_MOD_LITERAL_BEHIND_PATTERN + = Pattern.compile("(?