n3nash edited a comment on issue #1278: [HUDI-573] Refactoring getter to avoid double extrametadata in json representation of HoodieCommitMetadata URL: https://github.com/apache/incubator-hudi/pull/1278#issuecomment-578251544 When ObjectMapper converts a POJO to json string, it generates getters for the variables in the class as well as pulls the existing getters in the class after which it will stitch together the object to string. In HoodieCommitMetadata, there is a variable extraMetadataMap and also a getter method getExtraMetadata(). During serialization, there will be 2 object to string conversions 1) getExtraMetadata() 2) getExtraMetadataMap() (created by ObjectMapper) that results in 2 copies of the same data in JSON.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
