xushiyan commented on a change in pull request #2079:
URL: https://github.com/apache/hudi/pull/2079#discussion_r488124787
##########
File path:
hudi-common/src/test/java/org/apache/hudi/common/testutils/HoodieTestTable.java
##########
@@ -66,6 +74,30 @@ public static HoodieTestTable of(HoodieTableMetaClient
metaClient) {
return new HoodieTestTable(metaClient.getBasePath(),
metaClient.getRawFs(), metaClient);
}
+ public static String makeNewCommitTime(int sequence) {
+ return String.format("%09d", sequence);
+ }
+
+ public static String makeNewCommitTime() {
+ return makeNewCommitTime(Instant.now());
+ }
+
+ public static String makeNewCommitTime(Instant dateTime) {
+ return COMMIT_FORMATTER.format(Date.from(dateTime));
+ }
+
+ public static List<String> makeNewCommitTimes(int num) {
+ return makeNewCommitTimes(num, 1);
+ }
+
+ public static List<String> makeNewCommitTimes(int num, int
firstOffsetSeconds) {
Review comment:
ok changed.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]