rohdesamuel commented on code in PR #27280:
URL: https://github.com/apache/beam/pull/27280#discussion_r1245542603


##########
sdks/python/apache_beam/runners/worker/operations.py:
##########
@@ -178,7 +177,10 @@ def __init__(self,
     self.output_index = output_index
     self.coder = coder
     self.consumers = consumers
-    self.element_sampler = element_sampler
+    self.exception_sampler = output_sampler
+    self.element_sampler = (
+        output_sampler.element_sampler if output_sampler else None)
+    self.execution_context = None  # type: Optional[ExecutionContext]

Review Comment:
   TODO: change this type to annotation



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