manojpec opened a new pull request #4449:
URL: https://github.com/apache/hudi/pull/4449


   ## What is the purpose of the pull request
    - The backing log format for the metadata table is HFile, a KeyValue type.
      Since the key field in the metadata record payload is a duplicate of the
      Key in the Cell, the redundant key field in the record can be emptied
      to save on the cost.
   
    - HoodieHFileWriter and HoodieHFileDataBlock will now serialize records
      with the key field emptied by default. HFile writer tries to find if
      the record has metadata payload schema field 'key' and if so it does
      the key trimming from the record payload.
   
    - HoodieHFileReader when reading the serialized records back from disk,
      it materializes the missing keyFields if any. HFile reader tries to
      find if the record has metadata payload schema fiels 'key' and if so
      it does the key materialization in the record payload.
   
   ## Verify this pull request
   
    - Tests have been added to verify the default virtual keys and key
      deduplication support for the metadata table records.
   
   - Manually verified the serialized records on the disk are trimmed
     off the key field
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under 
an umbrella JIRA.
   


-- 
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: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to