-
Notifications
You must be signed in to change notification settings - Fork 998
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
Make online store nullable #2224
Make online store nullable #2224
Conversation
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
Hi @mirayyuce. Thanks for your PR. I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@mirayyuce thanks for your contribution! However, using Feast without an online store is rather an exception than a rule, simply because this is one of the core features of Feast. I also suspect the proposed change might introduce inconsistency for users who don't specify online store type and instead use inferred value. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better solution would be to make online_store
nullable.
PR also should be cleaned up: .DS_Store
files should be removed, unrelated changes should be removed.
Thank you for the review @pyalex In the issue I see two users who don't specify an online store with provider aws having some errors. GCP also causes different errors if we don't set the online store. It searches for Datastore or Firebase in GCP project. These errors were caused by the fact that apply() updates the online store with the latest feature values whether or not there is an online store. If there isn't an online/offline store, repo_config is setting the store type based on the provider, however because of the required parameters for both online and offline store those two users had issues. I tried giving some dummy hardcoded values to aws online store parameters, but then it tried to connect and had credential errors. At first I set the online store to null, however this caused problems with the tests. In all tests I see that sqlite is assumed as the default online store if it is not specified. This change will be the quickest change with minimum effect. It will help users having errors when they don't set an online store. |
/ok-to-test |
Codecov Report
@@ Coverage Diff @@
## master #2224 +/- ##
===========================================
- Coverage 84.98% 60.28% -24.70%
===========================================
Files 105 106 +1
Lines 8450 8609 +159
===========================================
- Hits 7181 5190 -1991
- Misses 1269 3419 +2150
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
The proposed change will break their setup.
|
Signed-off-by: Miray Yuce <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great overall!
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mirayyuce looks great overall! I think with a few more changes, this should be ready to merge in
Signed-off-by: Miray Yuce <[email protected]>
Signed-off-by: Miray Yuce <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: felixwang9817, mirayyuce The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cc @pyalex I think your comments have been addressed
@mirayyuce thanks for the contribution to Feast!! |
Thank you so much for the guidance! |
What this PR does / why we need it: At "feast init" step if no provider is specified the current version initializes the online store with default type based on the provider. However, some users don't want to specify an online store. When the online store parameter is not set in feature_store.yaml with provider either gcp or aws, it will fail at apply().
Which issue(s) this PR fixes:
Fixes #1809
Does this PR introduce a user-facing change?: