Skip to content

Commit c474ccd

Browse files
authored
feat: Use string as a substitute for unregistered types during schema inference (#3646)
Signed-off-by: phil.park <[email protected]>
1 parent 4de7faf commit c474ccd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/python/feast/type_map.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ def bq_to_feast_value_type(bq_type_as_str: str) -> ValueType:
538538
"NULL": ValueType.NULL,
539539
}
540540

541-
value_type = type_map[bq_type_as_str]
541+
value_type = type_map.get(bq_type_as_str, ValueType.STRING)
542+
542543
if is_list:
543544
value_type = ValueType[value_type.name + "_LIST"]
544545

0 commit comments

Comments
 (0)