1
0

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:
gekath
2017-06-13 13:35:38 -04:00
committed by prazanna
parent db7311f85e
commit 52c507f83e
4 changed files with 9 additions and 9 deletions

View File

@@ -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;
}