You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2023/01/19 23:41:31 UTC

[GitHub] [beam] tvalentyn commented on a diff in pull request #24834: improve error message for mismatched pipelines

tvalentyn commented on code in PR #24834:
URL: https://github.com/apache/beam/pull/24834#discussion_r1081979119


##########
sdks/python/apache_beam/transforms/util.py:
##########
@@ -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, (
+        'mismatched pipelines, input PCollections must all belong to the same pipeline')

Review Comment:
   ```suggestion
           'All input PCollections must belong to the same pipeline.')
   ```



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org