You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by bh...@apache.org on 2022/07/06 15:35:57 UTC

[beam] branch master updated: Fix test_row_coder_fail_early_bad_schema fails run after test_row_coder_cloud_object_schema (#22126)

This is an automated email from the ASF dual-hosted git repository.

bhulette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 9164673a973 Fix test_row_coder_fail_early_bad_schema fails run after test_row_coder_cloud_object_schema (#22126)
9164673a973 is described below

commit 9164673a973960178198f614709b70aba682264a
Author: Yi Hu <ya...@google.com>
AuthorDate: Wed Jul 6 11:35:49 2022 -0400

    Fix test_row_coder_fail_early_bad_schema fails run after test_row_coder_cloud_object_schema (#22126)
---
 sdks/python/apache_beam/coders/row_coder_test.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sdks/python/apache_beam/coders/row_coder_test.py b/sdks/python/apache_beam/coders/row_coder_test.py
index 67ee06dad26..843d2a32ec1 100644
--- a/sdks/python/apache_beam/coders/row_coder_test.py
+++ b/sdks/python/apache_beam/coders/row_coder_test.py
@@ -369,14 +369,15 @@ class RowCoderTest(unittest.TestCase):
         fields=[
             schema_pb2.Field(
                 name="type_with_no_typeinfo", type=schema_pb2.FieldType())
-        ])
+        ],
+        id='bad-schema')
 
     # Should raise an exception referencing the problem field
     self.assertRaisesRegex(
         ValueError, "type_with_no_typeinfo", lambda: RowCoder(schema_proto))
 
   def test_row_coder_cloud_object_schema(self):
-    schema_proto = schema_pb2.Schema()
+    schema_proto = schema_pb2.Schema(id='some-cloud-object-schema')
     schema_proto_json = json_format.MessageToJson(schema_proto).encode('utf-8')
 
     coder = RowCoder(schema_proto)