robertwb commented on a change in pull request #12804:
URL: https://github.com/apache/beam/pull/12804#discussion_r486679692
##########
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:
The convention in Beam is to use ()'s rather than backslashes for
multi-line statements.
----------------------------------------------------------------
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]