danny0405 commented on code in PR #13583:
URL: https://github.com/apache/hudi/pull/13583#discussion_r2220871536


##########
hudi-common/src/main/java/org/apache/hudi/metadata/MetadataPartitionType.java:
##########
@@ -454,6 +454,7 @@ public static List<MetadataPartitionType> 
getEnabledPartitions(HoodieMetadataCon
     }
     return Arrays.stream(getValidValues())
         .filter(partitionType -> 
partitionType.isMetadataPartitionEnabled(dataMetadataConfig) || 
partitionType.isMetadataPartitionAvailable(metaClient))
+        .filter(partitionType -> partitionType != PARTITION_STATS  || 
metaClient.getTableConfig().isTablePartitioned())

Review Comment:
   we can add another param `HoodieTableConfig` to 
`#isMetadataPartitionEnabled` to fix the 
`PARTITION_STATS#isMetadataPartitionEnabled`.



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