Skip to content

Commit 9182d3d

Browse files
committed
cr
Signed-off-by: Achal Shah <achals@gmail.com>
1 parent c271783 commit 9182d3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sdk/python/feast/data_source.py

+2-2
Original file line numberDiff line numberDiff 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"):

sdk/python/tests/unit/test_data_sources.py

+1-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)