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

   ### What would you like to happen?
   
   Currently element lateness is evaluated during windowing/triggering based 
upon TimerInternals.currentOutputWatermarkTime
   
   There are some cases where users want to handle late records differently. 
For example, instead of dropping late events or assigning them to their 
original (now late window) with allowedLateness, the late record could be 
assigned to a different window, logged and monitored explicitly, or mutated and 
output differently.
   
   By exposing the currentOutputWatermarkTime on the ProcessContext it would be 
possible for a DoFn to compare the timestamp of the incoming watermark to it to 
perform custom handling for late events.  
   The benefit of exposing the timestamp and not just an isLate method is that 
it would also be possible for a DoFn to set the timestamp of their output to a 
guaranteed non-late time based upon this value. 
   
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: sdk-java-core


-- 
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