You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Partial-update product counts a retracted value twice when a merge starts with a retraction #11465
The table reads amount = 25; it should read 5. The result is the same with changelog-producer = none, input and lookup.
In the second commit the merge starts with a retraction. The nullable accumulator is null, and FieldProductAgg.retract(null, 5) returns null, so the retraction is dropped. The +U(5) is then multiplied into the committed 5.
Anything else?
#11274 fixes the same problem for sum. It starts the accumulator empty and, when a merge only sees retractions, writes the retracted amount in the DELETE record so the next merge retracts it again. product can't follow the same approach directly: the retraction-only state is 1 / x, which truncates to 0 for integer types and can't be stored in the field type. A fix probably needs a different representation for retraction-only results, or a documented limitation for product with retractions.
Activity