lokeshj1703 commented on code in PR #12558:
URL: https://github.com/apache/hudi/pull/12558#discussion_r1905292598


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java:
##########
@@ -1091,13 +1102,23 @@ public void update(HoodieCommitMetadata commitMetadata, 
String instantTime) {
               enabledPartitionTypes, dataWriteConfig.getBloomFilterType(),
               dataWriteConfig.getBloomIndexParallelism(), 
dataWriteConfig.getWritesFileIdEncoding());
 
+      Option<HoodiePairData<String, 
List<List<HoodieColumnRangeMetadata<Comparable>>>>> 
partitionRangeMetadataPartitionPairOpt = Option.empty();
+      if 
(enabledPartitionTypes.contains(MetadataPartitionType.PARTITION_STATS)) {
+        
checkState(MetadataPartitionType.COLUMN_STATS.isMetadataPartitionAvailable(dataMetaClient),
+            "Column stats partition must be enabled to generate partition 
stats. Please enable: " + 
HoodieMetadataConfig.ENABLE_METADATA_INDEX_COLUMN_STATS.key());
+        partitionRangeMetadataPartitionPairOpt = 
Option.of(convertMetadataToPartitionStatsColumnRangeMetadata(commitMetadata, 
engineContext, dataMetaClient, dataWriteConfig.getMetadataConfig()));

Review Comment:
   This change was from the older approach. I have done removed this change now.



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