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:
[email protected]