-
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
Labels for feature #499
Labels for feature #499
Conversation
Hi @imjuanleonard. Thanks for your PR. I'm waiting for a gojek 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. |
sdk/python/feast/feature_set.py
Outdated
@@ -230,6 +233,23 @@ def max_age(self, max_age): | |||
""" | |||
self._max_age = max_age | |||
|
|||
@property | |||
def label(self): |
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.
Label isnt a property of a feature set, its a property of a 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.
My bad, Thanks for clarifying
Hence, this is current to do Checklist:
- Add Mac development set-up guide using homebrew
- Create the
labels
column on Field Class (This will affect the Feature and Entity) - Create a gateway to Create, List (Should be able to print the labels column), and Delete to the labels Column in
Feature
class using python SDK Client - Add the test with labels Column empty and labels Column marked in Feature class
- Update the integration test tree
- Update the documentation on how to use the labels from Feature function
Notes, Datatype for each of the layers
Python: dict()
Java: Map<String, String>
Table: Varchar(255): with key-value object store in JSON
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.
Varchar(255): with key-value object store in JSON
Why are you limiting it to that small of a size? I also think you should maybe consider comma or tab separation here and using a Set (in the Java model)
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.
Sure @woop , now I am using 'TEXT' for a result similar with Varchar(Max), thanks for the input
b460911
to
51b3111
Compare
51b3111
to
d785b60
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: imjuanleonard The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: imjuanleonard The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
2af7f5d
to
9baa029
Compare
sdk/python/setup.py
Outdated
@@ -48,6 +48,7 @@ | |||
"numpy", | |||
"google", | |||
"confluent_kafka", | |||
"tensorflow-metadata>=0.21,<0.22", |
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.
What is this for?
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 a missing dependency because we are using the TensorFlow metadata proto
Previously I keep facing this bug whenever I tried to generate my proto. We verified on a clean install on @davidheryanto environment as well.
In fact @davidheryanto is the one who found it
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.
Ok, but how is it related to your PR? Should it be a separate PR?
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.
15ebc95
to
3f596a9
Compare
The following users are mentioned in OWNERS file(s) but are not members of the gojek org. Once all users have been added as members of the org, you can trigger verification by writing
|
@@ -214,6 +225,40 @@ public Field(EntitySpec entitySpec) { | |||
} | |||
} | |||
|
|||
public Map<String, String> getLabels() { | |||
ObjectMapper mapper = new ObjectMapper(); |
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.
in TypeUtils we have helper functions convertJsonStringToMap
and convertMapToJsonString
, you might want to use those for converting to and from json.
cd47be2
to
abcce8c
Compare
abcce8c
to
8b1380f
Compare
8b1380f
to
f15e976
Compare
/retest test-core-and-ingestion |
/retest |
All the comments in this merge have been addressed, it is ported to #536 |
What this PR does / why we need it:
Full discussion is available on this issue
Which issue(s) this PR fixes:
Fixes #463 on the service side
Does this PR introduce a user-facing change?: