We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For features defined as floats, online retrieval should NOT return double type.
Float features are materialized into online stores as double type.
Add the following assertion inside the _assert_online_features() function in test_e2e_local.py:
_assert_online_features()
test_e2e_local.py
assert response.field_values[0].fields[f"driver_hourly_stats__conv_rate"].float_val > 0
In the function python_value_to_proto_value() of type_map.py, value_type perhaps should be set to feature_type if feature_type is not None:
python_value_to_proto_value()
type_map.py
value_type
feature_type
None
def python_value_to_proto_value( value: Any, feature_type: ValueType = None ) -> ProtoValue: value_type = ( feature_type if feature_type is not None else python_type_to_feast_value_type("", value) ) return _python_value_to_proto_value(value_type, value)
The text was updated successfully, but these errors were encountered:
Thanks for the bug report @Agent007 - I noticed the same thing yesterday when working on feast-dev/feast-java-old#37.
Sorry, something went wrong.
@achals You're very welcome! I created a PR for the fix. Wasn't sure if you hadn't seen it yet or if you've been busy.
achals
Successfully merging a pull request may close this issue.
Expected Behavior
For features defined as floats, online retrieval should NOT return double type.
Current Behavior
Float features are materialized into online stores as double type.
Steps to reproduce
Add the following assertion inside the
_assert_online_features()
function intest_e2e_local.py
:Specifications
Possible Solution
In the function
python_value_to_proto_value()
oftype_map.py
,value_type
perhaps should be set tofeature_type
iffeature_type
is notNone
:The text was updated successfully, but these errors were encountered: