yifanmai commented on a change in pull request #12804:
URL: https://github.com/apache/beam/pull/12804#discussion_r494506923



##########
File path: 
sdks/python/apache_beam/runners/portability/fn_api_runner/translations.py
##########
@@ -478,8 +478,10 @@ def leaf_transform_stages(
     if root.spec.urn in known_composites:
       yield Stage(root_id, [root], parent=parent)
     elif not root.subtransforms:
-      # Make sure its outputs are not a subset of its inputs.
-      if set(root.outputs.values()) - set(root.inputs.values()):
+      # Yield if its outputs are not a subset of its inputs,
+      # or if it has no inputs and no outputs.
+      if set(root.outputs.values()) - set(root.inputs.values()) or \

Review comment:
       I decided to solve this in a different way, which removes this line and 
also fixes the test failures.




----------------------------------------------------------------
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]


Reply via email to