danny0405 commented on code in PR #9923:
URL: https://github.com/apache/hudi/pull/9923#discussion_r1373979445
##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieTimeline.java:
##########
@@ -381,6 +381,13 @@ public interface HoodieTimeline extends Serializable {
*/
Stream<HoodieInstant> getInstantsOrderedByCompletionTime();
+ /**
+ * Get the earlier one from the two instants
+ */
+ static String minInstant(String instant1, String instant2) {
+ return compareTimestamps(instant1, LESSER_THAN, instant2) ? instant1 :
instant2;
Review Comment:
Move the method to line 424.
--
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]