nsivabalan commented on code in PR #14105:
URL: https://github.com/apache/hudi/pull/14105#discussion_r2452194233


##########
hudi-common/src/main/java/org/apache/hudi/stats/ValueMetadata.java:
##########
@@ -214,6 +214,11 @@ public static ValueMetadata getValueMetadata(GenericRecord 
columnStatsRecord) {
       throw new IllegalStateException("ColumnStatsMetadata is null. Handling 
should happen in the caller.");
     }
 
+    // This may happen when the record is from old table versions.
+    if (!columnStatsRecord.hasField(COLUMN_STATS_FIELD_VALUE_TYPE)) {

Review Comment:
   hey @lokeshj1703 : did you validate that w/o this fix, the new test added 
fails? 
   



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