Commit 9182d3d 1 parent c271783 commit 9182d3d Copy full SHA for 9182d3d
File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -560,8 +560,8 @@ def get_table_column_names_and_types(
560
560
def from_proto (data_source : DataSourceProto ):
561
561
schema_pb = data_source .push_options .schema
562
562
schema = {}
563
- for key in schema_pb .keys ():
564
- schema [key ] = ValueType ( schema_pb . get ( key ))
563
+ for key , value in schema_pb .items ():
564
+ schema [key ] = value
565
565
566
566
batch_source = None
567
567
if data_source .push_options .HasField ("batch_source" ):
Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ def test_push_with_batch():
31
31
32
32
assert push_source .name == push_source_unproto .name
33
33
assert push_source .schema == push_source_unproto .schema
34
- assert push_source .batch_source == push_source_unproto .batch_source
34
+ assert push_source .batch_source . name == push_source_unproto .batch_source . name
You can’t perform that action at this time.
0 commit comments