Worked example
Final watermark (seconds): 25
Inputs
- Event timestamps in arrival order (seconds): 10,20,12,30
- Allowed lateness (seconds): 5
Calculate final watermark from your inputs.
Use the units shown.
Subtract allowed lateness from maximum event timestamp.
Compare each event with the watermark established by earlier arrivals.
Count events strictly below their prior watermark.
Conceptual continuous-time watermark before an event is maximum timestamp of previous arrivals minus allowed lateness; engine-specific millisecond offsets are not modeled. An event is late only if below that watermark; equality is accepted.
Apache Flink Generating Watermarks ↗Final watermark (seconds): 25
Final watermark (seconds): 20