From c474ccdd23ca8161de5e2958f0a12826c020dc44 Mon Sep 17 00:00:00 2001 From: Jiwon Park Date: Tue, 6 Jun 2023 15:58:29 +0900 Subject: [PATCH] feat: Use string as a substitute for unregistered types during schema inference (#3646) Signed-off-by: phil.park --- sdk/python/feast/type_map.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py index 689f0268d2..df85346283 100644 --- a/sdk/python/feast/type_map.py +++ b/sdk/python/feast/type_map.py @@ -538,7 +538,8 @@ def bq_to_feast_value_type(bq_type_as_str: str) -> ValueType: "NULL": ValueType.NULL, } - value_type = type_map[bq_type_as_str] + value_type = type_map.get(bq_type_as_str, ValueType.STRING) + if is_list: value_type = ValueType[value_type.name + "_LIST"]