Karl-WangSK opened a new pull request #2106: URL: https://github.com/apache/hudi/pull/2106
## *Tips* - *Thank you very much for contributing to Apache Hudi.* - *Please review https://hudi.apache.org/contributing.html before opening a pull request.* ## What is the purpose of the pull request preCombine all HoodieRecords and update all fields(which is not DefaultValue) according to orderingVal ## Brief change log When more than one HoodieRecord have the same HoodieKey, this function combines all fields(which is not DefaultValue) before attempting to insert/upsert (if combining turned on in HoodieClientConfig). eg: 1) ``` In preCombine: (suppose Default value is null) id name age money ts 1 Karl null 30 0.0 (orderingVal=1) 1 null 18 40 0.0 (orderingVal=2) ``` ``` After: id name age money ts 1 Karl 18 40 0.0 ``` ## Verify this pull request Added one test in TestOverwriteWithLatestAvroPayload to verify the change ## Committer checklist - [x] 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. For queries about this service, please contact Infrastructure at: [email protected]
