-
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
Entity value_type inference for Feature Repo registration #1538
Entity value_type inference for Feature Repo registration #1538
Conversation
Hi @mavysavydav. 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. |
5681099
to
1c52ba2
Compare
f604d9d
to
1af0ae8
Compare
/ok-to-test |
/kind feature |
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.
Thanks @mavysavydav this looks great! The one thing I see is that there's also a way to apply a specific set of entities/feature views on the FeatureStore class here:
feast/sdk/python/feast/feature_store.py
Line 179 in 8712826
def apply( |
Note it's an "incremental apply" rather than a "total apply" so only the new/to-be-updated entities/feature views are passed in.
Would you be able to add entity inference in there as well?
Sounds good, will take a look |
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
…code Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #1538 +/- ##
==========================================
+ Coverage 83.59% 83.65% +0.06%
==========================================
Files 65 67 +2
Lines 5753 5812 +59
==========================================
+ Hits 4809 4862 +53
- Misses 944 950 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
d25e11c
to
3bb9524
Compare
Ready for another round of review. Sorry for the mess in this PR. Accidentally messed up my branch when syncing w master |
Thanks @mavysavydav |
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
btw I made the assumption that for featurestore.apply, we'd only want to infer the entities based on the feature_views passed in as part of that apply call. The reason I thought this was reasonable is that the alternative suggests a feature_view has been applied with an entity that hasn't been defined yet. Though in the case of redefinitions of entities, inferring from previously applied FeatureViews seems like ok behavior but that won't be done with the current logic. Happy to reconsider if ppl disagree. |
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
fc7fd72
to
9e99e90
Compare
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mavysavydav, woop 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 |
* Added inferencing of Entity values types & corresponding test Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Updated example_feature_repo_with_inference.py Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Fixed lint issue introduced by previous commit Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Optimized infer_entity_value_type_from_feature_views Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Added entity data type inferencing to feature_store.py and organized code Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Made error messages more descriptive and improved its structuring Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Removed s comments by using conftest file Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * Renamed variables for clarity and added clarifying comments Signed-off-by: David Y Liu <davidyliuliu@gmail.com> * changed file name from inference_helpers.py to inference.py Signed-off-by: David Y Liu <davidyliuliu@gmail.com>
Signed-off-by: David Y Liu davidyliuliu@gmail.com
What this PR does / why we need it:
This change enables users to register Entities without needing to specify the value_type because we'll be able to infer it based on finding the entity column in the table based on the Entity name and using that type. Milestone 2 of this RFC.
Which issue(s) this PR fixes:
Fixes #1500
Does this PR introduce a user-facing change?: