unical1988 commented on code in PR #728:
URL: https://github.com/apache/incubator-xtable/pull/728#discussion_r2297196914


##########
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:
   I cannot use sourceField as the year col, since year col is not part of the 
schema



-- 
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

Reply via email to