Davis-Zhang-Onehouse commented on code in PR #12829:
URL: https://github.com/apache/hudi/pull/12829#discussion_r1955259255


##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/MetadataConversionUtils.java:
##########
@@ -369,6 +369,14 @@ public static <T extends SpecificRecordBase> T 
convertCommitMetadata(HoodieCommi
     return (T) avroMetaData;
   }
 
+  /**
+   * Convert commit metadata from json to avro.
+   */
+  public static HoodieCommitMetadata 
convertCommitMetadataAvroToPojo(org.apache.hudi.avro.model.HoodieCommitMetadata 
hoodieCommitMetadata) {
+    hoodieCommitMetadata.getPartitionToWriteStats().remove(null);

Review Comment:
   based on the implementations it is possible (check tojson) method, let's 
keep this, it is not harmful



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