seawenc commented on code in PR #2491:
URL: https://github.com/apache/incubator-paimon/pull/2491#discussion_r1452048233


##########
paimon-common/src/main/java/org/apache/paimon/utils/DateTimeUtils.java:
##########
@@ -76,6 +84,95 @@ public class DateTimeUtils {
                     .optionalEnd()
                     .toFormatter();
 
+    public static final String TIMESTAMP_UTC_FLAG = "/UTC";
+
+    public static final String[] AUTO_PARSE_PATTERNS = {
+        "yyyy",
+        "yyyy-MM",
+        "yyyy-MM-dd",
+        "yyyy-MM-dd HH",
+        "yyyy-MM-dd HH:mm",
+        "yyyy-MM-dd HH:mm:ss",
+        "yyyy-MM-dd HH:mm:ss.SSS"
+    };
+    private static final String FULL_TIMESTAMP_DEF = "0000-01-01 00:00:00.000";
+
+    /**
+     * auto format date.
+     *
+     * @param timestampString
+     * @return
+     */
+    public static Timestamp autoFormatToTimestamp(String timestampString) {

Review Comment:
   @JingsongLi  Fixed,Please recheck!



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

Reply via email to