voonhous commented on code in PR #14311:
URL: https://github.com/apache/hudi/pull/14311#discussion_r2579960972


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -2640,16 +2673,20 @@ private static Stream<HoodieRecord> 
collectAndProcessColumnMetadata(Iterable<Hoo
 
   private static Stream<HoodieRecord> collectAndProcessColumnMetadata(String 
partitionPath, boolean isTightBound, Option<String> indexPartitionOpt,
                                                                       
Stream<HoodieColumnRangeMetadata<Comparable>> fileColumnMetadata,
-                                                                      
Map<String, Schema> colsToIndexSchemaMap,
+                                                                      
Map<String, HoodieSchema> colsToIndexSchemaMap,
                                                                       
HoodieIndexVersion partitionStatsIndexVersion
   ) {
+    // Convert Avro Schema map to HoodieSchema map
+    Map<String, HoodieSchema> hoodieSchemaMap = 
colsToIndexSchemaMap.entrySet().stream()
+        .collect(Collectors.toMap(Map.Entry::getKey, entry -> 
entry.getValue()));

Review Comment:
   Good catch, i was iterating on this, one thing led to another, forgot to 
revert it.



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