Github user fhueske commented on the issue:

    https://github.com/apache/flink/pull/5063
  
    A punctuated watermark assigner can emit `null` instead of a watermark. So 
using a punctuated watermark assigner does not mean that for each event a 
watermark must be emitted. The motivation for punctuated watermarks is to react 
to specific events that carry watermark information and not to all events (see 
[JavaDocs](https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/AssignerWithPunctuatedWatermarks.java)).
 Of course there's nothing that prevents users from emitting one watermark per 
event but as I said this was not the intended use case.
    
    A `lastProcessedWatermark` state variable would improve the situation a bit 
by acting as an early out for the `onTimer()` method. However, the system would 
still need to checkpoint and handle significantly more timers than with the 
current implementation.


---

Reply via email to