-
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
chore: Deprecate value type #2673
chore: Deprecate value type #2673
Conversation
can you describe what that bug was? |
Codecov Report
@@ Coverage Diff @@
## master #2673 +/- ##
==========================================
+ Coverage 80.19% 80.23% +0.03%
==========================================
Files 167 167
Lines 14021 14108 +87
==========================================
+ Hits 11244 11319 +75
- Misses 2777 2789 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
e648d29
to
9b5ae96
Compare
13ff480
to
aa48f4b
Compare
@@ -129,14 +129,15 @@ def __init__( | |||
owner (optional): The owner of the feature view, typically the email of the | |||
primary maintainer. | |||
schema (optional): The schema of the feature view, including feature, timestamp, | |||
and entity columns. | |||
and entity columns. If entity columns are included in the schema, a List[Entity] | |||
must be passed to `entities` instead of a List[str]; otherwise, the entity columns |
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.
Not the worst, but seems like we should able to avoid this for users by doing some entity name lookup no? Or is the idea that entity names are no longer unique
/lgtm |
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
…_type` Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
Signed-off-by: Felix Wang <[email protected]>
0eff01b
to
6c4e9d6
Compare
/lgtm |
Signed-off-by: Felix Wang <[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 except some minor version nits
sdk/python/feast/entity.py
Outdated
warnings.warn( | ||
( | ||
"The `value_type` parameter is being deprecated. Instead, the type of an entity " | ||
"should be specified as a Field in the schema of a feature view. Feast 0.22 and " |
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.
nit 0.23
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.
fixed
sdk/python/feast/feature_view.py
Outdated
warnings.warn( | ||
( | ||
"The `entities` parameter should be a list of `Entity` objects. " | ||
"Feast 0.22 and onwards will not support passing in a list of " |
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.
nit 0.23
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.
fixed
sdk/python/feast/feature_view.py
Outdated
warnings.warn( | ||
( | ||
"The `entities` parameter should be a list of `Entity` objects. " | ||
"Feast 0.22 and onwards will not support passing in a list of " |
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.
nit 0.23
Signed-off-by: Felix Wang <[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
sdk/python/feast/entity.py
Outdated
warnings.warn( | ||
( | ||
"The `value_type` parameter is being deprecated. Instead, the type of an entity " | ||
"should be specified as a Field in the schema of a feature view. Feast 0.22 and " |
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.
nit 0.23
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: achals, felixwang9817, pyalex 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: #2611 was reverted due to a bug. Specifically,
FeatureView.__eq__
was missing a comparison of theentity_columns
attribute. InRegistry.apply_feature_view
, we do not apply a feature view if it is equal to an existing feature view. The error occurred since the Java feature repo has aregistry.db
file that has already been populated with feature views; the new method of entity inference added some information to theentity_columns
attribute, but since that attribute was not compared in the equality check,Registry.apply_feature_view
never persisted the new feature view. This led to the downstream failure. This PR fixes that bug.Which issue(s) this PR fixes:
Fixes #