-
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
direct data ingestion into Online store #1939
direct data ingestion into Online store #1939
Conversation
@vas28r13: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
Hi @vas28r13. 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. |
/ok-to-test |
/kind feature |
Codecov Report
@@ Coverage Diff @@
## master #1939 +/- ##
==========================================
- Coverage 82.26% 82.08% -0.19%
==========================================
Files 96 99 +3
Lines 7669 7958 +289
==========================================
+ Hits 6309 6532 +223
- Misses 1360 1426 +66
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 good!
sdk/python/feast/feature_store.py
Outdated
@@ -766,6 +766,19 @@ def tqdm_builder(length): | |||
feature_view, self.project, start_date, end_date | |||
) | |||
|
|||
@log_exceptions_and_usage | |||
def ingest_df( |
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.
mind calling this write_to_online_store instead? ingest can be confusing for folks who think this might also mean writing to the offline store
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.
the name is fine for the provider since i think this naming will work for those once we want to ingest to both offline and online stores. But as an external facing API, should be more clear to start.
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.
also, mind making this an experimental feature?
e.g. like https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_store.py#L399
sdk/python/feast/feature_store.py
Outdated
@@ -766,6 +766,19 @@ def tqdm_builder(length): | |||
feature_view, self.project, start_date, end_date | |||
) | |||
|
|||
@log_exceptions_and_usage | |||
def ingest_df( |
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.
also, mind making this an experimental feature?
e.g. like https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_store.py#L399
/retest |
560d4fc
to
161be8d
Compare
@@ -424,6 +426,46 @@ def test_apply_remote_repo(): | |||
) | |||
|
|||
|
|||
@pytest.mark.parametrize( |
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.
this is fine for now. mind adding a TODO to move this to test_universal_online? that parametrizes across online stores
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
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.
Leaving a quick request changes to add the TODO i mentioned (even better if you move it to test_universal_online as per https://docs.feast.dev/how-to-guides/adding-or-reusing-tests
Hey @vas28r13, thanks for this PR. We just fixed the issue with the linter that's been blocking all PRs for the last two days. Would you mind rebasing your changes on |
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
6106e20
to
9bfa450
Compare
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
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
sdk/python/tests/integration/feature_repos/repo_configuration.py
Outdated
Show resolved
Hide resolved
Signed-off-by: Vitaly Sergeyev <vsergeyev@better.com>
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: adchia, vas28r13 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 |
@@ -809,6 +809,26 @@ def tqdm_builder(length): | |||
feature_view, self.project, start_date, end_date | |||
) | |||
|
|||
@log_exceptions_and_usage | |||
def write_to_online_store( |
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.
@vas28r13 thx for adding this capability, we use this capability so we can write inference data in a real-time flow. However, the get_feature_view
does not use the allow_cache
option of the registry. This causes a lookup to refresh the registry for every call to write_to_online_store
. This blocks the new capability from being used real-time. Would it make sense to add a PR that fixes that? thx...
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.
would you mind making an issue so we can track this?
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.
done
Signed-off-by: Vitaly Sergeyev vsergeyev@better.com
Issue docs: #1863
Directly ingest data into the Online store.
Use Case
a model process/service will get a stream of data and would need to keep track of the new/updated features in the Online feature store
Code example
Process 1
Process 2 (materialization job)