Skip to content

Commit

Permalink
improve error message for mismatched pipelines (#24834)
Browse files Browse the repository at this point in the history
Co-authored-by: tvalentyn <tvalentyn@users.noreply.github.com>
  • Loading branch information
zhenglin-charlie-li and tvalentyn committed Jan 20, 2023
1 parent c1b840a commit 428ec97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/transforms/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def expand(self, pcolls):
for pcoll in pcolls.values():
self._check_pcollection(pcoll)
if self.pipeline:
assert pcoll.pipeline == self.pipeline
assert pcoll.pipeline == self.pipeline, (
'All input PCollections must belong to the same pipeline.')

tags = list(pcolls.keys())

Expand Down

0 comments on commit 428ec97

Please sign in to comment.