You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For your first example, I think this is expected. the pipeline won't be executed after the entire pipeline is construct. After that, the variable i has the final value, which will be passed in for the final execution.
What happened?
When using for loop, to execute PTransform, all loops seem to use the last value of an iterator.
As a result of the code, I expected to print
But I got:
Moreover, I found a workaround defining a new sum function:
I am using the following versions:
apache_beam==2.55.0
python==3.10.12
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: