[HUDI-8850] insert merge mode #12735
Open
+128
−209
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Logs
MIT delete does not take effect. Run test class TestMergeModeCommitTimeOrdering.
COW, Override payload.
(id 1, ts 100)
incoming record
(id 1, ts 101)
MIT on match id column then delete
We end up with (id 1, ts 100).
Investigation findings
Investigation found that:
shouldIgnore(Schema, Properties):173, for the incoming record returns true. So it is completely not processed.
Because "getInsertValue"
Questions
I'm confused by the logic, here we have the incoming record matching with the existing record, yet we are calling getInsertValue, which is a branch intended for " the not-matched record ". It internally poke into the assignment clause and for MIT delete it is totally garbage info and we end up with HoodieRecord.SENTINEL.
I need to learn the right flow of MIT delete first to figure out the problem.
Impact
Risk level (write none, low medium or high below)
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist