tkaymak opened a new issue, #40446:
URL: https://github.com/apache/beam/issues/40446

   ### 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
   
   - [x] Component: Spark Runner
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to