robertwb commented on a change in pull request #13177:
URL: https://github.com/apache/beam/pull/13177#discussion_r514434037
##########
File path:
sdks/python/apache_beam/runners/portability/fn_api_runner/translations.py
##########
@@ -1702,13 +1702,26 @@ def sort_stages(stages, pipeline_context):
seen = set() # type: Set[Stage]
ordered = []
+ producers = {
+ pcoll: stage
+ for stage in all_stages for t in stage.transforms
Review comment:
This should be sufficient. Generally the subtransform structure is not
preserved when dealing with stages (and is simply reconstructed later).
----------------------------------------------------------------
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:
[email protected]