AnandInguva commented on issue #29591: URL: https://github.com/apache/beam/issues/29591#issuecomment-1839428971
>> I expect both Yielder and Returner to have the same behavior. This is wrong here. yield is used in python generators. It returns a value and pauses execution so that it can be resumed later to produce successive values. returns exits the function. When a function returns, its execution completely stops. In the Returner class, only the first batch will be returned where as in Yielder, it will yield one batch at a time. I haven't run the code yet to reproduce. -- 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]
