Skip to content

[core] Start a new partial-update row after a removing delete - #11711

Open
JeonDaehong wants to merge 1 commit into
apache:masterfrom
JeonDaehong:pu-restart-after-delete
Open

JeonDaehong wants to merge 1 commit into
apache:masterfrom
JeonDaehong:pu-restart-after-delete

Conversation

@JeonDaehong

Copy link
Copy Markdown

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#testRemoveRecordOnDeleteStartsANewRowAfterDelete and PrimaryKeySimpleTableTest#testPartialUpdateRemoveRecordOnDeleteThenInsert. Both fail on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant