-
Notifications
You must be signed in to change notification settings - Fork 1k
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
SQL Registry is broken due to caching #3445
Comments
@jiewpeng
I'm leaning towards option 3 of removing the I can take up this issue, this will be my first contribution to the feast and I would love to learn the process and contribute. |
@rajeshreddykundur I have no preference as to which option is implemented, as long as it fixes the issue (all 3 methods will fix the issue). Option 3 makes sense to me as well, I'm just not sure whether the feast devs had something in mind when they designed the |
is there a way to tag the CODEOWNERS and check if its okay to remove the project argument? If they need that argument in future, we can go option 2 adding default argument value = None. |
I guess an easy way to check is just remove the |
Thanks for catching the issue @jiewpeng - I think using |
Expected Behavior
SQL registry works
Current Behavior
When calling
feature_store.get_online_features()
, we should get back the features.Steps to reproduce
Use any SQL registry and call
feature_store.get_online_features()
.Traceback (apologies for the REDACTED stuff, that has to do with Databricks redacting some stuff which it thinks are secrets:
This seems to be caused by triggering a refresh of the registry cache, which expects a
project
parameter, which type hint states that it is optional, but because the method spec does not define a default value, will require a value to be passed in. However, this value is not passed in, causingself.refresh()
to fail.Possible Solution
In https://github.com/feast-dev/feast/blob/master/sdk/python/feast/infra/registry/sql.py#L234, change
self.refresh()
toself.refresh(None)
. Alternatively, change therefresh
method to have a default value for theproject
parameter (not sure why the parameter is required; it doesn't seem to be used).The text was updated successfully, but these errors were encountered: