-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
Repro: {{p| beam.io.WriteToText(output_file))||
produces:
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pipeline.py", line 157, in run
self.to_runner_api(), self.runner, self.options).run(False)
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pipeline.py", line 334, in to_runner_api
root_transform_id = context.transforms.get_id(self._root_transform())
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/runners/pipeline_context.py", line 52, in get_id
self._id_to_proto[id] = obj.to_runner_api(self._pipeline_context)
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pipeline.py", line 523, in to_runner_api
subtransforms=[context.transforms.get_id(part) for part in self.parts],
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/runners/pipeline_context.py", line 52, in get_id
self._id_to_proto[id] = obj.to_runner_api(self._pipeline_context)
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pipeline.py", line 523, in to_runner_api
subtransforms=[context.transforms.get_id(part) for part in self.parts],
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/runners/pipeline_context.py", line 52, in get_id
self._id_to_proto[id] = obj.to_runner_api(self._pipeline_context)
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pipeline.py", line 528, in to_runner_api
for tag, out in self.named_outputs().items()},
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pipeline.py", line 528, in <dictcomp>
for tag, out in self.named_outputs().items()},
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/runners/pipeline_context.py", line 52, in get_id
self._id_to_proto[id] = obj.to_runner_api(self._pipeline_context)
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pvalue.py", line 128, in to_runner_api
self.windowing))
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/pvalue.py", line 110, in windowing
self.producer.inputs)
File "/Users/tiborkiss/workspace/beam/sdks/python/apache_beam/transforms/ptransform.py", line 336, in get_windowing
return inputs[0].windowing
AttributeError: 'PBegin' object has no attribute 'windowing'
cc: [~tibor.kiss@gmail.com]
Imported from Jira BEAM-2107. Original Jira may contain additional context.
Reported by: altay.