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


##########
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java:
##########
@@ -286,19 +286,20 @@ public static Map<String, 
HoodieColumnRangeMetadata<Comparable>> collectColumnRa
       // with the values from this record
       targetFields.forEach(fieldNameFieldPair -> {
         String fieldName = fieldNameFieldPair.getKey();
-        Schema fieldSchema = 
getNonNullTypeFromUnion(fieldNameFieldPair.getValue().schema());
-        ColumnStats colStats = allColumnStats.computeIfAbsent(fieldName, 
ignored -> new ColumnStats(getValueMetadata(fieldSchema, indexVersion)));
-        Object fieldValue = collectColumnRangeFieldValue(record, 
colStats.valueMetadata, fieldName, fieldSchema, recordSchema, properties);
+        HoodieSchemaField field = fieldNameFieldPair.getValue();
+        HoodieSchema hoodieFieldSchema = 
HoodieSchemaUtils.getNonNullTypeFromUnion(field.schema());

Review Comment:
   Done



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