[ 
https://issues.apache.org/jira/browse/BEAM-6894?focusedWorklogId=234457&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-234457
 ]

ASF GitHub Bot logged work on BEAM-6894:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 29/Apr/19 11:40
            Start Date: 29/Apr/19 11:40
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on pull request #8270: [BEAM-6894] 
Support for constructing a Dataflow job request that includes cross-language 
transforms
URL: https://github.com/apache/beam/pull/8270#discussion_r279327842
 
 

 ##########
 File path: sdks/python/apache_beam/transforms/core.py
 ##########
 @@ -312,35 +311,15 @@ def __init__(self, proto):
     self._proto = proto
 
   def proto(self):
-    """Runner API payload for constructing the Python pipeline construct."""
+    """Runner API payload for a `PTransform`"""
     return self._proto
 
-
-class RunnerAPIPTransformHolder(RunnerAPIProtoHolder, PTransform):
-  """A `RunnerAPIProtoHolder` for `PTransform`s"""
-
   def to_runner_api(self, context, has_parts=False):
     return self._proto
 
-  @staticmethod
-  def is_external_transform(proto):
-    if proto.urn != python_urns.PICKLED_TRANSFORM:
-      return True
-
-
-class RunnerAPICoderHolder(RunnerAPIProtoHolder, Coder):
-  """A `RunnerAPIProtoHolder` for `Coder`s"""
-
-  def to_runner_api(self, context):
-    return self._proto
-
-  def to_type_hint(self):
-    return typehints.Any
-
-  @staticmethod
-  def is_external_coder(proto):
-    if proto.spec.spec.urn != python_urns.PICKLED_CODER:
-      return True
+  def get_restriction_coder(self):
+    # TODO(chamikara): support external transforms that are SDFs.
 
 Review comment:
   JIRA?
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 234457)
    Time Spent: 9h 40m  (was: 9.5h)

> ExternalTransform.expand() does not create the proper AppliedPTransform 
> sub-graph
> ---------------------------------------------------------------------------------
>
>                 Key: BEAM-6894
>                 URL: https://issues.apache.org/jira/browse/BEAM-6894
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Chamikara Jayalath
>            Assignee: Chamikara Jayalath
>            Priority: Major
>          Time Spent: 9h 40m
>  Remaining Estimate: 0h
>
> 'ExternalTransform.expand()' can be used to expand a remote transform and 
> build the correct runner-api subgraph for that transform. However currently 
> we do not modify the AppliedPTransform sub-graph correctly during this 
> process. Relevant code location here.
> [https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/external.py#L135]
>  
> Without this, DataflowRunner that relies in this object graph (not just the 
> runner API proto) to build the job submission request to Dataflow service 
> cannot construct this request properly.
>  
> cc: [~robertwb]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to