This is an automated email from the ASF dual-hosted git repository.

danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 2a022393388 [MINOR] Fix millis append format error (#9274)
2a022393388 is described below

commit 2a0223933884cb044e7aa56f205cae926358a030
Author: KnightChess <981159...@qq.com>
AuthorDate: Wed Jul 26 10:02:53 2023 +0800

    [MINOR] Fix millis append format error (#9274)
---
 .../apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
 
b/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
index 5223227fce9..366d654bec1 100644
--- 
a/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
+++ 
b/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java
@@ -114,7 +114,7 @@ public class HoodieInstantTimeGenerator {
 
   /**
    * Creates an instant string given a valid date-time string.
-   * @param dateString A date-time string in the format yyyy-MM-dd 
HH:mm:ss[:SSS]
+   * @param dateString A date-time string in the format yyyy-MM-dd 
HH:mm:ss[.SSS]
    * @return A timeline instant
    * @throws ParseException If we cannot parse the date string
    */
@@ -124,7 +124,7 @@ public class HoodieInstantTimeGenerator {
     } catch (Exception e) {
       // Attempt to add the milliseconds in order to complete parsing
       return getInstantFromTemporalAccessor(LocalDateTime.parse(
-          String.format("%s:%s", dateString, DEFAULT_MILLIS_EXT), 
MILLIS_GRANULARITY_DATE_FORMATTER));
+          String.format("%s.%s", dateString, DEFAULT_MILLIS_EXT), 
MILLIS_GRANULARITY_DATE_FORMATTER));
     }
   }
 

Reply via email to