@@ -87,6 +87,9 @@ def test_python_values_to_proto_values_bool(values):
8787 (np .array ([None ]), ValueType .BYTES_LIST , None ),
8888 (np .array ([None ]), ValueType .STRING_LIST , None ),
8989 (np .array ([None ]), ValueType .UNIX_TIMESTAMP_LIST , None ),
90+ ([np .array ([], dtype = np .int32 )], ValueType .INT32_LIST , []),
91+ ([np .array ([], dtype = np .float32 )], ValueType .FLOAT_LIST , []),
92+ ([np .array ([], dtype = np .bool_ )], ValueType .BOOL_LIST , []),
9093 ([b"[1,2,3]" ], ValueType .INT64_LIST , [1 , 2 , 3 ]),
9194 ([b"[1,2,3]" ], ValueType .INT32_LIST , [1 , 2 , 3 ]),
9295 ([b"[1.5,2.5,3.5]" ], ValueType .FLOAT_LIST , [1.5 , 2.5 , 3.5 ]),
@@ -2094,12 +2097,12 @@ def test_sanitize_list_value_ndarray(self):
20942097 assert isinstance (result , list )
20952098
20962099 def test_sanitize_list_value_empty_ndarray (self ):
2097- """Empty ndarray is converted to None (treated as a missing row) ."""
2100+ """Empty ndarray is converted to an empty Python list ."""
20982101 from feast .type_map import _sanitize_list_value
20992102
21002103 arr = np .array ([], dtype = object )
21012104 result = _sanitize_list_value (arr , ValueType .STRING_LIST )
2102- assert result is None
2105+ assert result == []
21032106
21042107 def test_sanitize_list_value_ndarray_with_none (self ):
21052108 """None elements inside a STRING_LIST ndarray are replaced with empty string."""
0 commit comments