GaetanLepage commented on PR #36251:
URL: https://github.com/apache/beam/pull/36251#issuecomment-3328595151
```
def transform_to_runner_api(
transform, # type: Optional[ptransform.PTransform]
context # type: PipelineContext
):
# type: (...) -> Optional[beam_runner_api_pb2.FunctionSpec]
if transform is None:
return None
else:
# We only populate inputs information to ParDo in order to expose
# key_coder and window_coder to stateful DoFn.
if isinstance(transform, ParDo):
return transform.to_runner_api(
context,
has_parts=bool(self.parts),
named_inputs=self.named_inputs())
return transform.to_runner_api(context, has_parts=bool(self.parts))
# Iterate over inputs and outputs by sorted key order, so that ids are
# consistently generated for multiple runs of the same pipeline.
try:
transform_spec = transform_to_runner_api(self.transform, context)
except Exception as exn:
> raise RuntimeError(f'Unable to translate {self.full_label}') from exn
E RuntimeError: Unable to translate assert_that/Create/MaybeReshuffle
```
--
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]