stayrascal opened a new pull request #4724:
URL: https://github.com/apache/hudi/pull/4724


   …e case
   
   ## *Tips*
   - *Thank you very much for contributing to Apache Hudi.*
   - *Please review https://hudi.apache.org/contribute/how-to-contribute before 
opening a pull request.*
   
   ## What is the purpose of the pull request
    Add a customized payload `PartialOverwriteWithLatestAvroPayload` to support 
partial overwrite records fields.
   For example, two incoming record batch A(1, null, 1, 1) and B(2, 2, null, 2) 
will be combined as the result (2, 2, 1, 2)
   *(For example: This pull request adds quick-start document.)*
   
   ## Brief change log
     - *Add a `PartialOverwriteWithLatestAvroPayload` to support partial 
overwrite records*
     - *Add a config `partial.overwrite.enabled` to control if enable partial 
overwrite*
     - *Change the ValueState of `BucketAssignFunction` from 
`HoodieRecordGlobalLocation` to `HoodieRecord`*
     - Support partition path changed case
       - Merge `HoodieRecord` before storing the record in ValueSate
       - Copy and sink a new record from state to downstream operator the 
record partition is changed
     - Add `compareTo` to compare two HoodieRecords to chose their sequence, 
because cannot get the sequence from `#preCombine` method if merge two records 
in `#preCombine` method
     - Add `schema` filed(String) in new AvroPayload, which will be used to 
`#preCombine` two records
     - Change `BootstrapOperator` to load `HoodieRecord` with data instead of 
only HoddieKey
     - Change `RowDataToHoodieFunction` to create payload with schema 
   
   ## Verify this pull request
     - *Added PartialOverwriteWithLatestAvroPayloadTest to verify the change.*
     - *Manually verified the change by running a job locally with both 
`preCombine` and `combineAndGetUpdateValue` methods*
   
   ## 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to