Skip to content

Commit

Permalink
chore: Modifiy the comment
Browse files Browse the repository at this point in the history
Signed-off-by: zlatan.el <zlatan.el@kakaomobility.com>
  • Loading branch information
km-zlatan-el committed Dec 19, 2022
1 parent e0c952f commit 033a432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 033a432

Please sign in to comment.