yihua commented on code in PR #6000:
URL: https://github.com/apache/hudi/pull/6000#discussion_r913296110


##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieInstantTimeGenerator.java:
##########
@@ -97,7 +103,7 @@ public static Date parseDateFromInstantTime(String 
timestamp) throws ParseExcept
       return Date.from(dt.atZone(ZoneId.systemDefault()).toInstant());
     } catch (DateTimeParseException e) {
       // Special handling for all zero timestamp which is not parsable by 
DateTimeFormatter
-      if (timestamp.equals(ALL_ZERO_TIMESTAMP)) {
+      if (NOT_PARSABLE_TIMESTAMPS.contains(timestamp)) {

Review Comment:
   For each ts, should a different Date be returned, i.e., 
   ```
   INIT_INSTANT_TS = "00000000000000"   => Date(0)
   METADATA_BOOTSTRAP_INSTANT_TS = "00000000000001"  => Date(1000)
   FULL_BOOTSTRAP_INSTANT_TS = "00000000000002"  => Date(2000)
   ```
   ?



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