unical1988 commented on code in PR #728: URL: https://github.com/apache/incubator-xtable/pull/728#discussion_r2297177719
########## xtable-core/src/main/java/org/apache/xtable/hudi/HudiPathUtils.java: ########## @@ -28,4 +28,8 @@ public static String getPartitionPath(Path tableBasePath, Path filePath) { int endIndex = pathStr.length() - fileName.length() - 1; return endIndex <= startIndex ? "" : pathStr.substring(startIndex, endIndex); } + + public static String getPartitionPathValue(Path tableBasePath, Path filePath) { + return getPartitionPath(tableBasePath, filePath).split("=")[1]; + } Review Comment: Btw, since the sourcefield name (timestamp) is different from the partition col (year) i am not sure how Hudi logic extracts the values of partition from the path? -- 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. To unsubscribe, e-mail: commits-unsubscr...@xtable.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org