Repository navigation
[core] Start a new partial-update row after a removing delete - #11711
Open
JeonDaehong wants to merge 1 commit into
Open
JeonDaehong wants to merge 1 commit into
JeonDaehong wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose
With
partial-update.remove-record-on-delete, a DELETE puts its own values into the merged row, and a later INSERT for the same key only overwrites its non-null fields. So a column that the INSERT leaves null keeps the deleted value:+I(1, 10, 100),-D(1, 10, 100),+I(1, null, 200)read as(1, 10, 200)when they are merged together, but as(1, null, 200)once a full compaction has dropped the DELETE. This starts a new row on the first insert after such a delete, as #10952 did for aggregation.It doesn't cover #11501, where the DELETE and the next insert meet in the write buffer before the older file.
Tests
PartialUpdateMergeFunctionTest#testRemoveRecordOnDeleteStartsANewRowAfterDeleteandPrimaryKeySimpleTableTest#testPartialUpdateRemoveRecordOnDeleteThenInsert. Both fail on master.