You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/udf/6137508531934/feast.zip/feast/infra/utils/snowflake/snowpark/snowflake_udfs.py", line 150, in feast_snowflake_boolean_to_bool_boolean_proto
python_values_to_proto_values(df[0].to_numpy(), ValueType.BOOL),
File "/home/udf/6137508531934/feast.zip/feast/type_map.py", line 454, in python_values_to_proto_values
return _python_value_to_proto_value(value_type, values)
File "/home/udf/6137508531934/feast.zip/feast/type_map.py", line 408, in _python_value_to_proto_value
assert type(sample) in [np.int64, int, np.float64, float]
AssertionError
in function FEAST_FEAST_FEATURES_SNOWFLAKE_BOOLEAN_TO_BOOL_PROTO with handler feast.infra.utils.snowflake.snowpark.snowflake_udfs.feast_snowflake_boolean_to_bool_boolean_proto
Steps to reproduce
feast==0.28.0
Batch materialization job where Boolean values (must include FALSE)
Specifications
Version: 0.28.0
Platform: mac, linux
Subsystem: ?
Possible Solution
As pointed out in this issue, I believe this bug was introduced in 0.28.0 such that:
Expected Behavior
In Snowflake
select FEAST_FEAST_FEATURES_SNOWFLAKE_BOOLEAN_TO_BOOL_PROTO(FALSE);
-->
3800
Current Behavior
select FEAST_FEAST_FEATURES_SNOWFLAKE_BOOLEAN_TO_BOOL_PROTO(FALSE);
Steps to reproduce
feast==0.28.0
FALSE
)Specifications
Possible Solution
As pointed out in this issue, I believe this bug was introduced in 0.28.0 such that:
Boolean value evaluates to
feast/sdk/python/feast/type_map.py
Lines 399 to 403 in 98a24a3
feast/sdk/python/feast/type_map.py
Line 303 in 98a24a3
Which causes it to enter this conditional
feast/sdk/python/feast/type_map.py
Lines 404 to 410 in 98a24a3
Where it can fail if
sample == False
becauseFalse == 0
-->True
The text was updated successfully, but these errors were encountered: