damccorm commented on code in PR #35675:
URL: https://github.com/apache/beam/pull/35675#discussion_r2228770132
##########
sdks/python/apache_beam/yaml/yaml_transform_test.py:
##########
@@ -217,6 +217,36 @@ def test_implicit_flatten(self):
providers=TEST_PROVIDERS)
assert_that(result, equal_to([1, 4, 9, 10000, 40000]))
+ def test_flatten_different_schemas_error(self):
+ with beam.Pipeline(options=beam.options.pipeline_options.PipelineOptions(
+ pickle_library='cloudpickle')) as p:
+ with self.assertRaisesRegex(
+ ValueError, r"Cannot flatten PCollections with different schemas"):
Review Comment:
```suggestion
Exception, r"Cannot flatten PCollections with different schemas"):
```
Minor: Prism raises RuntimeErrors here so this makes the check portable
--
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]