From 033a4325a9045074b72de9679423854faaeba3f4 Mon Sep 17 00:00:00 2001 From: "zlatan.el" Date: Mon, 19 Dec 2022 22:01:24 +0900 Subject: [PATCH] chore: Modifiy the comment Signed-off-by: zlatan.el --- sdk/python/feast/type_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/feast/type_map.py b/sdk/python/feast/type_map.py index 2ec204f658..04571f3369 100644 --- a/sdk/python/feast/type_map.py +++ b/sdk/python/feast/type_map.py @@ -403,7 +403,7 @@ def _python_value_to_proto_value( ) = PYTHON_SCALAR_VALUE_TYPE_TO_PROTO_VALUE[feast_value_type] if valid_scalar_types: if sample == 0 or sample == 0.0: - # In the case of a value of 0, type validation cannot be performed with only one int or float type. + # Numpy convert 0 to int. However, in the feature view definition, the type of column may be a float. assert type(sample) in [np.int64, np.float64, float, int] else: assert type(sample) in valid_scalar_types