Skip to content

Input upsert fix#5929

Merged
ryzhyk merged 1 commit intomainfrom
input-upsert-fix
Mar 27, 2026
Merged

Input upsert fix#5929
ryzhyk merged 1 commit intomainfrom
input-upsert-fix

Conversation

@ryzhyk
Copy link
Copy Markdown
Contributor

@ryzhyk ryzhyk commented Mar 26, 2026

InputUpsert worked incorrectly when updates arrived in multiple batches within
a step. In particular when the same key occurs as a delete in the first batch,
and an insert in the second batch, we'd apply them in the wrong order.

Describe Manual Test Plan

Tested on a customer pipeline that manifested the error.

Checklist

  • Unit tests added/updated
  • Integration tests added/updated
  • Documentation updated
  • Changelog updated

@ryzhyk ryzhyk requested a review from blp March 26, 2026 17:47
@ryzhyk ryzhyk enabled auto-merge March 26, 2026 17:55
Copy link
Copy Markdown

@mythical-fred mythical-fred left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryzhyk ryzhyk added this pull request to the merge queue Mar 26, 2026
@ryzhyk ryzhyk removed this pull request from the merge queue due to a manual request Mar 26, 2026
InputUpsert worked incorrectly when updates arrived in multiple batches within
a step. In particular when the same key occurs as a delete in the first batch,
and an insert in the second batch, we'd apply them in the wrong order.

Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>
@ryzhyk ryzhyk force-pushed the input-upsert-fix branch from b973d3b to ff68e51 Compare March 26, 2026 21:44
@ryzhyk ryzhyk added this pull request to the merge queue Mar 27, 2026
Merged via the queue into main with commit f9384a7 Mar 27, 2026
1 check passed
@ryzhyk ryzhyk deleted the input-upsert-fix branch March 27, 2026 06:44
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.

3 participants