File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 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(
560560 def from_proto (data_source : DataSourceProto ):
561561 schema_pb = data_source .push_options .schema
562562 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
565565
566566 batch_source = None
567567 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():
3131
3232 assert push_source .name == push_source_unproto .name
3333 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