derrickaw commented on code in PR #37861:
URL: https://github.com/apache/beam/pull/37861#discussion_r2959454169
##########
sdks/python/apache_beam/yaml/yaml_transform.py:
##########
@@ -826,16 +887,26 @@ def expand(inputs):
transform = transform.with_resource_hints(
**SafeLineLoader.strip_metadata(spec['resource_hints']))
+ # Always set a name for the composite to ensure proper return value
if 'name' not in spec:
spec['name'] = 'Composite'
if spec['name'] is None: # top-level pipeline, don't nest
- return transform.expand(None)
+ result = transform.expand(None)
+ return result
Review Comment:
change doesn't seem necessary?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]