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

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

                Author: ASF GitHub Bot
            Created on: 02/Dec/19 22:11
            Start Date: 02/Dec/19 22:11
    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_r352886109
 
 

 ##########
 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:
   Seems that the java direct runner and dataflow JRH both filters elements 
before trigger so I thought it should be better to do it the same way in 
python. Filter out the elements here is more for reusing of the transcripts in 
trigger tests since here trigger doesn't really deal with lateness. Another 
option is to pass the transcript tests that specifies allowed_lateness in 
trigger tests, would that makes more sense?
 
----------------------------------------------------------------
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: 352261)
    Time Spent: 2h 50m  (was: 2h 40m)

> 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: 2h 50m
>  Remaining Estimate: 0h
>




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

Reply via email to