[ 
https://issues.apache.org/jira/browse/BEAM-8824?focusedWorklogId=352280&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-352280
 ]

ASF GitHub Bot logged work on BEAM-8824:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Dec/19 22:57
            Start Date: 02/Dec/19 22:57
    Worklog Time Spent: 10m 
      Work Description: y1chi commented on pull request #10216: [BEAM-8824] Add 
support to allow specify window allowed_lateness in python sdk
URL: https://github.com/apache/beam/pull/10216#discussion_r352904529
 
 

 ##########
 File path: sdks/python/apache_beam/transforms/trigger_test.py
 ##########
 @@ -718,6 +719,9 @@ def fire_timers():
         output = [
             _windowed_value_info(wv)
             for wv in driver.process_elements(state, bundle, watermark)]
+        # ignore WindowValues with expired window in output
+        output = [wvi for wvi in output
+                  if wvi['window'][1] + allowed_lateness >= watermark]
 
 Review comment:
   or we can probably use driver.process_elements to deal with the lateness if 
we can add input watermark to the function arg list, I'll see if that's 
possible.
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 352280)
    Time Spent: 3h 10m  (was: 3h)

> Add support for allowed lateness in python sdk
> ----------------------------------------------
>
>                 Key: BEAM-8824
>                 URL: https://issues.apache.org/jira/browse/BEAM-8824
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Yichi Zhang
>            Assignee: Yichi Zhang
>            Priority: Major
>          Time Spent: 3h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to