Skip to content

Commit de67bdd

Browse files
authored
fix: Remote Online Store Type Inference Error with All-NULL Columns (#6063)
fix_remote_online_type_error_with_all_null_columns Signed-off-by: yuanjun220 <1069645408@qq.com>
1 parent 6658b71 commit de67bdd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/python/feast/type_map.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,8 @@ def python_values_to_proto_values(
12161216
value_type = python_type_to_feast_value_type("", sample)
12171217

12181218
if value_type == ValueType.UNKNOWN:
1219+
if all(v is None for v in values):
1220+
return [ProtoValue() for _ in values]
12191221
raise TypeError("Couldn't infer value type from empty value")
12201222

12211223
proto_values = _python_value_to_proto_value(value_type, values)

0 commit comments

Comments
 (0)