-
Notifications
You must be signed in to change notification settings - Fork 996
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
Fix bug causing OnDemandFeatureView.infer_features() to fail when the… #2046
Conversation
…re are labels present in the features that are registered in the on-deamnd-feature-view definition. Signed-off-by: ArrichM <maximilianjakob.arrich@student.unisg.ch>
@ArrichM: 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 @ArrichM. 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 |
Codecov Report
@@ Coverage Diff @@
## master #2046 +/- ##
==========================================
- Coverage 83.70% 83.41% -0.30%
==========================================
Files 100 100
Lines 8028 8029 +1
==========================================
- Hits 6720 6697 -23
- Misses 1308 1332 +24
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: ArrichM <maximilianjakob.arrich@student.unisg.ch>
Thanks for the PR @ArrichM! I think your approach would work, but I'm wondering if a better fix would be to update https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature.py#L50 and remove the line
Since that would fix these kinds of comparisons more generally. What do you think? |
Signed-off-by: ArrichM <maximilianjakob.arrich@student.unisg.ch>
Yes, that was also what I came up with originally, but then I was hesitant to introduce this change globally. |
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: achals, ArrichM 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 |
What this PR does / why we need it:
Problem:
When running OnDemandFeatureView.infer_features() and there are features registered with labels, an RegistryInferenceFailure is raised.
Currently, this will work as-is:
While this won't:
Suggested Fix:
To allow features with labels in the OnDemandFeatureView definition, remove labels from the registered features when comparing infered features with registered ones.Do not include labels when checking equality of Features.
Does this PR introduce a user-facing change?: