suibianwanwank commented on code in PR #3936:
URL: https://github.com/apache/calcite/pull/3936#discussion_r1738357182


##########
core/src/main/java/org/apache/calcite/util/format/FormatElementEnum.java:
##########
@@ -326,7 +377,16 @@ public enum FormatElementEnum implements FormatElement {
       sb.append(String.format(Locale.ROOT, "%03d", 
calendar.get(Calendar.MILLISECOND)));
     }
   },
-  SS("s", "The second as a decimal number (00-60)") {
+  MCS("", "The millisecond as a decimal number (000000-999999)") {
+    @Override public void format(StringBuilder sb, Date date) {
+      final Calendar calendar = Work.get().calendar;
+      calendar.setTime(date);
+      // It exceeds the precision of Calendar, we fill it with 0.

Review Comment:
   This is an incorrect function description, it means microsecond here, I'll 
fix it



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