robertwb commented on code in PR #29140:
URL: https://github.com/apache/beam/pull/29140#discussion_r1372442367


##########
sdks/python/apache_beam/runners/portability/expansion_service.py:
##########
@@ -41,7 +43,18 @@ def __init__(self, options=None):
 
   def Expand(self, request, context=None):
     try:
-      pipeline = beam_pipeline.Pipeline(options=self._options)
+      options = copy.deep_copy(self._options)
+      request_options = pipeline_options.PipelineOptions.from_runner_api(
+          request.pipeline_options)
+      # TODO(https://github.com/apache/beam/issues/20090): Figure out the
+      # correct subset of options to apply to expansion.
+      if request_options.view_as(

Review Comment:
   I put it here as it's next to the other update options. Open to suggestions 
if there's a better place. (A new update options?)



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

Reply via email to