Skip to content

[core] Retract one copy of a row in keyless nested_update - #11714

Open
JeonDaehong wants to merge 1 commit into
apache:masterfrom
JeonDaehong:nested-retract-one
Open

JeonDaehong wants to merge 1 commit into
apache:masterfrom
JeonDaehong:nested-retract-one

Conversation

@JeonDaehong

@JeonDaehong JeonDaehong commented Dec 6, 2026 •

Copy link
Copy Markdown

Purpose

Without nested-key, nested_update appends rows, so the array can hold equal rows. retract removed every row equal to the retracted one, so with two equal order lines in one array, a -U of one of them removed both: +I [(1,2)], +I [(1,2)], +I [(2,5)], -U [(1,2)] read [(2,5)] instead of [(1,2), (2,5)]. It now removes one copy, which is what collect does.

pypaimon has the same code, fixed in #11715.

Tests

FieldAggregatorTest#testFieldNestedAppendAggRetractRemovesOneCopy and PrimaryKeySimpleTableTest#testNestedUpdateWithoutKeyRetractsOneOfTwoEqualRows. 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