Writes relative paths to .commit files
Handle case where path is read in as null from commit file Merged with updated release
This commit is contained in:
@@ -86,10 +86,9 @@ public class HoodieCommitMetadata implements Serializable {
|
||||
|
||||
public HashMap<String, String> getFileIdAndFullPaths(String basePath) {
|
||||
HashMap<String, String> fullPaths = new HashMap<>();
|
||||
HashMap<String, String> relativePaths = getFileIdAndRelativePaths();
|
||||
for (Map.Entry<String, String> entry: relativePaths.entrySet()) {
|
||||
Path fullPath = new Path(basePath, entry.getValue());
|
||||
fullPaths.put(entry.getKey(), fullPath.toString());
|
||||
for (Map.Entry<String, String> entry: getFileIdAndRelativePaths().entrySet()) {
|
||||
String fullPath = (entry.getValue() != null) ? (new Path(basePath, entry.getValue())).toString() : null;
|
||||
fullPaths.put(entry.getKey(), fullPath);
|
||||
} return fullPaths;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user