alexeykudinkin commented on a change in pull request #4948:
URL: https://github.com/apache/hudi/pull/4948#discussion_r822163833
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/util/TablePathUtils.java
##########
@@ -92,12 +92,21 @@ private static boolean isInsideTableMetadataFolder(String
path) {
HoodiePartitionMetadata metadata = new HoodiePartitionMetadata(fs,
partitionPath);
metadata.readFromFS();
return Option.of(getNthParent(partitionPath,
metadata.getPartitionDepth()));
+ } else {
+ // Simply traverse directory structure until found .hoodie folder
+ Path current = partitionPath;
+ while (current != null) {
+ if (hasTableMetadataFolder(fs, current)) {
Review comment:
Correct. This is only useful in a discovery phase.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]