-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: Add registry methods for dealing with all FV types #4435
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
Changes from all commits
0f9dfb5
9b84ce7
c7b6b6f
b365afc
48cf968
f55ff4b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,9 +32,13 @@ service RegistryServer{ | |
|
|
||
| // FeatureView RPCs | ||
| rpc ApplyFeatureView (ApplyFeatureViewRequest) returns (google.protobuf.Empty) {} | ||
| rpc DeleteFeatureView (DeleteFeatureViewRequest) returns (google.protobuf.Empty) {} | ||
| rpc GetAnyFeatureView (GetAnyFeatureViewRequest) returns (GetAnyFeatureViewResponse) {} | ||
| rpc ListAllFeatureViews (ListAllFeatureViewsRequest) returns (ListAllFeatureViewsResponse) {} | ||
|
|
||
| // plain FeatureView RPCs | ||
| rpc GetFeatureView (GetFeatureViewRequest) returns (feast.core.FeatureView) {} | ||
| rpc ListFeatureViews (ListFeatureViewsRequest) returns (ListFeatureViewsResponse) {} | ||
| rpc DeleteFeatureView (DeleteFeatureViewRequest) returns (google.protobuf.Empty) {} | ||
|
|
||
| // StreamFeatureView RPCs | ||
| rpc GetStreamFeatureView (GetStreamFeatureViewRequest) returns (feast.core.StreamFeatureView) {} | ||
|
|
@@ -208,6 +212,35 @@ message DeleteFeatureViewRequest { | |
| bool commit = 3; | ||
| } | ||
|
|
||
| message AnyFeatureView { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why AnyFeatureView and not
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, this is a single message though so I see.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why wouldn't we call it FeatureViewType?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I feel like type is something else, it would refer to one the types, not one of the objects.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I see what you're doing this for. Man this is ugly. The
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I get why we can't jump right to that, but maybe we should start a doc on what should be reconciled for release to Feast 1.0? |
||
| oneof any_feature_view { | ||
| feast.core.FeatureView feature_view = 1; | ||
| feast.core.OnDemandFeatureView on_demand_feature_view = 2; | ||
| feast.core.StreamFeatureView stream_feature_view = 3; | ||
| } | ||
| } | ||
|
|
||
| message GetAnyFeatureViewRequest { | ||
| string name = 1; | ||
| string project = 2; | ||
| bool allow_cache = 3; | ||
| } | ||
|
|
||
| message GetAnyFeatureViewResponse { | ||
| AnyFeatureView any_feature_view = 1; | ||
| } | ||
|
|
||
| message ListAllFeatureViewsRequest { | ||
| string project = 1; | ||
| bool allow_cache = 2; | ||
| map<string,string> tags = 3; | ||
| } | ||
|
|
||
| message ListAllFeatureViewsResponse { | ||
| repeated AnyFeatureView feature_views = 1; | ||
| } | ||
|
|
||
|
|
||
| // StreamFeatureView | ||
|
|
||
| message GetStreamFeatureViewRequest { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -585,7 +585,26 @@ def apply_materialization( | |
| self.commit() | ||
| return | ||
|
|
||
| raise FeatureViewNotFoundException(feature_view.name, project) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you mean to drop this from |
||
| def list_all_feature_views( | ||
| self, | ||
| project: str, | ||
| allow_cache: bool = False, | ||
| tags: Optional[dict[str, str]] = None, | ||
| ) -> List[BaseFeatureView]: | ||
| registry_proto = self._get_registry_proto( | ||
| project=project, allow_cache=allow_cache | ||
| ) | ||
| return proto_registry_utils.list_all_feature_views( | ||
| registry_proto, project, tags | ||
| ) | ||
|
|
||
| def get_any_feature_view( | ||
| self, name: str, project: str, allow_cache: bool = False | ||
| ) -> BaseFeatureView: | ||
| registry_proto = self._get_registry_proto( | ||
| project=project, allow_cache=allow_cache | ||
| ) | ||
| return proto_registry_utils.get_any_feature_view(registry_proto, name, project) | ||
|
|
||
| def list_feature_views( | ||
| self, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.