File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sdk/python/feast/infra/offline_stores/contrib/trino_offline_store Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def trino_to_feast_value_type(trino_type_as_str: str) -> ValueType:
2424 }
2525 _trino_type_as_str : str = trino_type_as_str
2626 trino_type_as_str = trino_type_as_str .lower ()
27-
27+
2828 if trino_type_as_str .startswith ("decimal" ):
2929 search_precision = re .search (
3030 r"^decimal\((\d+)(?>,\s?\d+)?\)$" , trino_type_as_str
@@ -41,7 +41,7 @@ def trino_to_feast_value_type(trino_type_as_str: str) -> ValueType:
4141
4242 elif trino_type_as_str .startswith ("varchar" ):
4343 trino_type_as_str = "varchar"
44-
44+
4545 if trino_type_as_str not in type_map :
4646 raise ValueError (f"Trino type not supported by feast { _trino_type_as_str } " )
4747 return type_map [trino_type_as_str ]
You can’t perform that action at this time.
0 commit comments