bvaradar commented on code in PR #8452:
URL: https://github.com/apache/hudi/pull/8452#discussion_r1193408405


##########
hudi-common/src/main/java/org/apache/hudi/metadata/FileSystemBackedTableMetadata.java:
##########
@@ -95,11 +120,38 @@ public List<String> 
getPartitionPathWithPathPrefixes(List<String> relativePathPr
     }).collect(Collectors.toList());
   }
 
+  private int getRelativePathPartitionLevel(Types.RecordType partitionFields, 
String relativePathPrefix) {
+    if (StringUtils.isNullOrEmpty(relativePathPrefix) || partitionFields == 
null || partitionFields.fields().size() == 1) {
+      return 0;
+    }
+
+    int level = 0;
+    for (int i = 1; i < relativePathPrefix.length() - 1; i++) {

Review Comment:
   @boneanxs : One could write a custom PartitionValueExtractor to sync hive 
partitions but in general I would imagine query engines would expect them to be 
escaped. In any case, I would suggest to revert to default behavior (no 
pruning) when we detect hivestylepartitioning  disabled and the number of 
levels do not match partition fields. 



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

Reply via email to