Skip to content

[SPARK-56464][SS] Reset numRowsRemoved to 0 properly on the progress event for no batch triggers#55331

Open
HeartSaVioR wants to merge 8 commits intoapache:masterfrom
HeartSaVioR:SPARK-56464
Open

[SPARK-56464][SS] Reset numRowsRemoved to 0 properly on the progress event for no batch triggers#55331
HeartSaVioR wants to merge 8 commits intoapache:masterfrom
HeartSaVioR:SPARK-56464

Conversation

@HeartSaVioR
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

This PR proposes to reset numRowsRemoved to 0 when numRowsRemoved > 0 for the last batch and there is no batch being triggered. numRowsUpdated and numRowsDroppedByWatermark were properly reset to 0 but we missed to handle numRowsRemoved.

Why are the changes needed?

The progress for no batch trigger could have numRowsRemoved > 0 when numRowsRemoved > 0 for the last batch, which is confusing. Also some tests can be flaky due to this.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

New UT.

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude 4.6 Opus

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