You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/01/24 18:43:25 UTC

[GitHub] [incubator-hudi] n3nash commented on issue #1278: [HUDI-573] Refactoring getter to avoid double extrametadata in json representation of HoodieCommitMetadata

n3nash commented 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 getting 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:
users@infra.apache.org


With regards,
Apache Git Services