You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/01/26 12:27:19 UTC

[GitHub] [hudi] wangxianghu commented on a change in pull request #2475: [HUDI-1527] automatically infer the data directory, users only need to specify the table directory

wangxianghu commented on a change in pull request #2475:
URL: https://github.com/apache/hudi/pull/2475#discussion_r564472557



##########
File path: hudi-spark-datasource/hudi-spark-common/src/main/java/org/apache/hudi/DataSourceUtils.java
##########
@@ -84,6 +86,39 @@ public static String getTablePath(FileSystem fs, Path[] userProvidedPaths) throw
     throw new TableNotFoundException("Unable to find a hudi table for the user provided paths.");
   }
 
+  public static Option<String> getOnePartitionPath(FileSystem fs, Path tablePath) throws IOException {

Review comment:
       @teeyog maybe we can check whether the table is partitioned through `hoodie.datasource.write.keygenerator.class` param
   WDYT?
   




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org