Skip to content

Commit eaa71d2

Browse files
author
Selim Soufargi
committed
cleanups
1 parent 2924b56 commit eaa71d2

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

xtable-core/src/main/java/org/apache/xtable/hudi/HudiPathUtils.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,4 @@ public static String getPartitionPath(Path tableBasePath, Path filePath) {
2828
int endIndex = pathStr.length() - fileName.length() - 1;
2929
return endIndex <= startIndex ? "" : pathStr.substring(startIndex, endIndex);
3030
}
31-
32-
/* public static String getPartitionPathValue(Path tableBasePath, Path filePath) {
33-
return getPartitionPath(tableBasePath, filePath).split("=")[1];
34-
}*/
3531
}

xtable-core/src/main/java/org/apache/xtable/hudi/PathBasedPartitionValuesExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private PartialResult parsePartitionPath(
8686
return parseDate(
8787
remainingPath,
8888
pathToPartitionFieldFormat.get(
89-
field.getSourceField().getName())); // changed from getPath()
89+
field.getSourceField().getPath())); // changed from getPath()
9090
case VALUE:
9191
// if there is only one partition field, then assume full partition path is used even if
9292
// value contains slashes

0 commit comments

Comments
 (0)