yifanmai commented on a change in pull request #13177:
URL: https://github.com/apache/beam/pull/13177#discussion_r511169718
##########
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:
Do we need to traverse into sub-transforms to fetch their inputs, or are
we guaranteed that all transforms are leaf transforms?
----------------------------------------------------------------
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]