vernedeng commented on code in PR #10042:
URL: https://github.com/apache/inlong/pull/10042#discussion_r1575546280


##########
inlong-common/src/main/java/org/apache/inlong/common/pojo/sort/dataflow/field/format/DateFormatInfo.java:
##########
@@ -98,11 +99,10 @@ public String serialize(Date date) {
                 return Long.toString(seconds);
             }
             default: {
-                if (simpleDateFormat == null) {
+                if (formatter == null) {
                     throw new IllegalStateException();
                 }
-
-                return simpleDateFormat.format(date);
+                return date.toLocalDate().format(formatter);

Review Comment:
   Fixed, use thread local to ensure the thread safety.



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