We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f7c4ed commit 1c7c491Copy full SHA for 1c7c491
sdk/python/feast/type_map.py
@@ -402,7 +402,7 @@ def _python_value_to_proto_value(
402
valid_scalar_types,
403
) = PYTHON_SCALAR_VALUE_TYPE_TO_PROTO_VALUE[feast_value_type]
404
if valid_scalar_types:
405
- if sample == 0 or sample == 0.0:
+ if (sample == 0 or sample == 0.0) and feast_value_type != ValueType.BOOL:
406
# Numpy convert 0 to int. However, in the feature view definition, the type of column may be a float.
407
# So, if value is 0, type validation must pass if scalar_types are either int or float.
408
assert type(sample) in [np.int64, int, np.float64, float]
0 commit comments