lokeshj1703 commented on code in PR #14105:
URL: https://github.com/apache/hudi/pull/14105#discussion_r2454021659
##########
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:
yes, validated w/o the fix in the added test
--
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]