shunping opened a new pull request, #34781:
URL: https://github.com/apache/beam/pull/34781

   Currently, the last `Map` step in the following pipeline will not be 
executed, due to watermark not increasing for the GlobalWindows code path of 
`BatchElements` 
(https://github.com/apache/beam/blob/release-2.64/sdks/python/apache_beam/transforms/util.py#L592)
   
   ```python
   with beam.Pipeline(options=options) as p:
     _ = (p
          | PeriodicImpulse(fire_interval=1)
          | beam.BatchElements(target_batch_duration_secs=5)
          | beam.Reshuffle()
          | beam.Map(print)
     )
   ```
   
   By setting `max_batch_duration_secs` when initializing `BatchElements`, we 
can force it to run a different code path.


-- 
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: github-unsubscr...@beam.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to