chamikaramj commented on a change in pull request #11185: [BEAM-8019] Updates
Python SDK to handle remote SDK coders and preserve tags added by remote SDKs
and propagate restriction coders.
URL: https://github.com/apache/beam/pull/11185#discussion_r403391405
##########
File path: sdks/python/apache_beam/runners/dataflow/dataflow_runner.py
##########
@@ -597,14 +604,22 @@ def _get_side_input_encoding(self, input_encoding):
},
}
- def _get_encoded_output_coder(self, transform_node, window_value=True):
+ def _get_encoded_output_coder(
+ self, transform_node, window_value=True, output_tag=None):
"""Returns the cloud encoding of the coder for the output of a
transform."""
- from apache_beam.runners.portability.fn_api_runner.translations import \
- only_element
- if len(transform_node.outputs) == 1:
- output_tag = only_element(transform_node.outputs.keys())
+ external_transform = isinstance(
Review comment:
Done.
----------------------------------------------------------------
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]
With regards,
Apache Git Services