[ 
https://issues.apache.org/jira/browse/BEAM-106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16911481#comment-16911481
 ] 

Luke Cwik commented on BEAM-106:
--------------------------------

Unroll the loop some fixed number of iterations. If any records make it to the 
last iteration, either save those and re-read them in a new pipeline so that it 
goes through more iterations or rerun the original pipeline with the loop 
unrolled with a higher number of iterations.

> Native support for conditional iteration
> ----------------------------------------
>
>                 Key: BEAM-106
>                 URL: https://issues.apache.org/jira/browse/BEAM-106
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-ideas
>            Reporter: Luke Cwik
>            Priority: Major
>
> Ported from: https://github.com/GoogleCloudPlatform/DataflowJavaSDK/issues/50
> There are a variety of use cases which would benefit from native support for 
> conditional iteration.
> For instance, 
> http://stackoverflow.com/questions/31654421/conditional-iterations-in-google-cloud-dataflow/31659923?noredirect=1#comment51264604_31659923
>  asks about being able to write a loop like the following:
> {code}
> PCollection data  = ...
> while(needsMoreWork(data)) {
>   data = doAStep(data)
> }
> {code}
> If there are specific use cases please let us know the details. In the future 
> we will use this issue to post progress updates.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to