Skip to content

[Task]: Tighten the late data bound of the Spark 4 streaming stateful ParDo to the previous batch watermark #40446

Description

@tkaymak

What needs to happen?

The Spark 4 Structured Streaming stateful ParDo filters late data against the watermark stored on the key's previous visit, so a key on its first visit or idle for several batches accepts data that a per batch bound would drop. Spark holds the per batch value as eventTimeWatermarkForLateEvents in TransformWithStateExec, but StatefulProcessor only sees the eviction watermark through TimerValues. Tighten the bound once Spark exposes the late events watermark, or by tracking the previous batch watermark outside keyed state.

Part of #36841.

Issue Priority

Priority: 3 (nice-to-have improvement)

Issue Components

  • Component: Spark Runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions