[HUDI-2395] Metadata tests rewrite (#3695)
- Added commit metadata infra to test table so that we can test entire metadata using test table itself. These tests don't care about the contents of files as such and hence we should be able to test all code paths for metadata using test table. Co-authored-by: Sivabalan Narayanan <n.siva.b@gmail.com>
This commit is contained in:
@@ -167,6 +167,9 @@ public class FSUtils {
|
||||
}
|
||||
|
||||
public static String getCommitTime(String fullFileName) {
|
||||
if (isLogFile(new Path(fullFileName))) {
|
||||
return fullFileName.split("_")[1].split("\\.")[0];
|
||||
}
|
||||
return fullFileName.split("_")[2].split("\\.")[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user