-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
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
On demand feature view not supporting objects #2220
Comments
Hi @roy651. Thanks for reporting this. I understand that exception information is very confusing. We should add some details to the assertion or better raise proper exceptions. That being said, this line is not correct
If you need to convert column to string the correct way would be:
Otherwise, you create a column with dtype object, which is intentionally not supported by Feast. |
Thanks @pyalex for the guidance to use
Crashes similarly with:
Note that I've added a couple of debug prints, the last of which comes from within A quick search reveals that Pandas relies upon Numpy for typing and, in short, because Numpy treats strings as arrays they become objects. There is an alternative approach, starting from Pandas 1.0.0, but it supports the use of I saw that the |
@pyalex Just to clarify the point - This is obviously just an example, but as it stands, I couldn't get any strings to work in the transformed ODFV. |
@roy651, you're right. This is my mistake. It always will be dtype I will increase priority and return the bug label. We're gonna fix it ASAP. |
Expected Behavior
Should process fine when applying.
Current Behavior
Steps to reproduce
Get the on demand feature view demo from: https://github.com/feast-dev/feast-demo/blob/main/feature_repo/features.py
Add the 2 lines as noted in the snippet above for the new STRING feature:
conv_rate_plus_val3
Specifications
Possible Solution
I might be doing something wrong or expecting something which shouldn't be supported. Would love to hear feedback.
Incase this turns out to be a bug, this might be a possible solution --
The type map defined at:
feast/sdk/python/feast/type_map.py
Line 94 in 9dc9e60
Should possibly include an entry for pandas
obj
dtype?The text was updated successfully, but these errors were encountered: