Skip to content

Commit

Permalink
chore: Remove all usage of RequestFeatureView (#4039)
Browse files Browse the repository at this point in the history
remove all usage of RequestFeatureViews

Signed-off-by: tokoko <togurg14@freeuni.edu.ge>
  • Loading branch information
tokoko authored Mar 26, 2024
1 parent e703b40 commit cf58ebe
Show file tree
Hide file tree
Showing 23 changed files with 19 additions and 696 deletions.
2 changes: 0 additions & 2 deletions protos/feast/core/Registry.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import "feast/core/FeatureTable.proto";
import "feast/core/FeatureView.proto";
import "feast/core/InfraObject.proto";
import "feast/core/OnDemandFeatureView.proto";
import "feast/core/RequestFeatureView.proto";
import "feast/core/StreamFeatureView.proto";
import "feast/core/DataSource.proto";
import "feast/core/SavedDataset.proto";
Expand All @@ -41,7 +40,6 @@ message Registry {
repeated FeatureView feature_views = 6;
repeated DataSource data_sources = 12;
repeated OnDemandFeatureView on_demand_feature_views = 8;
repeated RequestFeatureView request_feature_views = 9;
repeated StreamFeatureView stream_feature_views = 14;
repeated FeatureService feature_services = 7;
repeated SavedDataset saved_datasets = 11;
Expand Down
51 changes: 0 additions & 51 deletions protos/feast/core/RequestFeatureView.proto

This file was deleted.

22 changes: 0 additions & 22 deletions protos/feast/registry/RegistryServer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "feast/core/Registry.proto";
import "feast/core/Entity.proto";
import "feast/core/DataSource.proto";
import "feast/core/FeatureView.proto";
import "feast/core/RequestFeatureView.proto";
import "feast/core/StreamFeatureView.proto";
import "feast/core/OnDemandFeatureView.proto";
import "feast/core/FeatureService.proto";
Expand All @@ -28,10 +27,6 @@ service RegistryServer{
rpc GetFeatureView (GetFeatureViewRequest) returns (feast.core.FeatureView) {}
rpc ListFeatureViews (ListFeatureViewsRequest) returns (ListFeatureViewsResponse) {}

// RequestFeatureView RPCs
rpc GetRequestFeatureView (GetRequestFeatureViewRequest) returns (feast.core.RequestFeatureView) {}
rpc ListRequestFeatureViews (ListRequestFeatureViewsRequest) returns (ListRequestFeatureViewsResponse) {}

// StreamFeatureView RPCs
rpc GetStreamFeatureView (GetStreamFeatureViewRequest) returns (feast.core.StreamFeatureView) {}
rpc ListStreamFeatureViews (ListStreamFeatureViewsRequest) returns (ListStreamFeatureViewsResponse) {}
Expand Down Expand Up @@ -126,23 +121,6 @@ message ListFeatureViewsResponse {
repeated feast.core.FeatureView feature_views = 1;
}

// RequestFeatureView

message GetRequestFeatureViewRequest {
string name = 1;
string project = 2;
bool allow_cache = 3;
}

message ListRequestFeatureViewsRequest {
string project = 1;
bool allow_cache = 2;
}

message ListRequestFeatureViewsResponse {
repeated feast.core.RequestFeatureView request_feature_views = 1;
}

// StreamFeatureView

message GetStreamFeatureViewRequest {
Expand Down
16 changes: 0 additions & 16 deletions sdk/python/docs/source/feast.protos.feast.core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,22 +228,6 @@ feast.protos.feast.core.Registry\_pb2\_grpc module
:undoc-members:
:show-inheritance:

feast.protos.feast.core.RequestFeatureView\_pb2 module
------------------------------------------------------

.. automodule:: feast.protos.feast.core.RequestFeatureView_pb2
:members:
:undoc-members:
:show-inheritance:

feast.protos.feast.core.RequestFeatureView\_pb2\_grpc module
------------------------------------------------------------

.. automodule:: feast.protos.feast.core.RequestFeatureView_pb2_grpc
:members:
:undoc-members:
:show-inheritance:

feast.protos.feast.core.SavedDataset\_pb2 module
------------------------------------------------

Expand Down
8 changes: 0 additions & 8 deletions sdk/python/docs/source/feast.rst
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,6 @@ feast.repo\_upgrade module
:undoc-members:
:show-inheritance:

feast.request\_feature\_view module
-----------------------------------

.. automodule:: feast.request_feature_view
:members:
:undoc-members:
:show-inheritance:

feast.saved\_dataset module
---------------------------

Expand Down
2 changes: 0 additions & 2 deletions sdk/python/feast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from .field import Field
from .on_demand_feature_view import OnDemandFeatureView
from .repo_config import RepoConfig
from .request_feature_view import RequestFeatureView
from .stream_feature_view import StreamFeatureView
from .value_type import ValueType

Expand All @@ -49,7 +48,6 @@
"BigQuerySource",
"FileSource",
"RedshiftSource",
"RequestFeatureView",
"SnowflakeSource",
"PushSource",
"RequestSource",
Expand Down
1 change: 0 additions & 1 deletion sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ def feature_view_list(ctx: click.Context):
table = []
for feature_view in [
*store.list_feature_views(),
*store.list_request_feature_views(),
*store.list_on_demand_feature_views(),
]:
entities = set()
Expand Down
6 changes: 0 additions & 6 deletions sdk/python/feast/diff/registry_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
OnDemandFeatureView as OnDemandFeatureViewProto,
)
from feast.protos.feast.core.OnDemandFeatureView_pb2 import OnDemandFeatureViewSpec
from feast.protos.feast.core.RequestFeatureView_pb2 import (
RequestFeatureView as RequestFeatureViewProto,
)
from feast.protos.feast.core.StreamFeatureView_pb2 import (
StreamFeatureView as StreamFeatureViewProto,
)
Expand Down Expand Up @@ -110,7 +107,6 @@ def tag_objects_for_keep_delete_update_add(
FeatureViewProto,
FeatureServiceProto,
OnDemandFeatureViewProto,
RequestFeatureViewProto,
StreamFeatureViewProto,
ValidationReferenceProto,
)
Expand Down Expand Up @@ -339,7 +335,6 @@ def apply_diff_to_registry(
elif feast_object_diff.feast_object_type in [
FeastObjectType.FEATURE_VIEW,
FeastObjectType.ON_DEMAND_FEATURE_VIEW,
FeastObjectType.REQUEST_FEATURE_VIEW,
FeastObjectType.STREAM_FEATURE_VIEW,
]:
feature_view_obj = cast(
Expand Down Expand Up @@ -383,7 +378,6 @@ def apply_diff_to_registry(
elif feast_object_diff.feast_object_type in [
FeastObjectType.FEATURE_VIEW,
FeastObjectType.ON_DEMAND_FEATURE_VIEW,
FeastObjectType.REQUEST_FEATURE_VIEW,
FeastObjectType.STREAM_FEATURE_VIEW,
]:
registry.apply_feature_view(
Expand Down
4 changes: 0 additions & 4 deletions sdk/python/feast/feast_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,17 @@
from .protos.feast.core.FeatureService_pb2 import FeatureServiceSpec
from .protos.feast.core.FeatureView_pb2 import FeatureViewSpec
from .protos.feast.core.OnDemandFeatureView_pb2 import OnDemandFeatureViewSpec
from .protos.feast.core.RequestFeatureView_pb2 import RequestFeatureViewSpec
from .protos.feast.core.StreamFeatureView_pb2 import StreamFeatureViewSpec
from .protos.feast.core.ValidationProfile_pb2 import (
ValidationReference as ValidationReferenceProto,
)
from .request_feature_view import RequestFeatureView
from .saved_dataset import ValidationReference
from .stream_feature_view import StreamFeatureView

# Convenience type representing all Feast objects
FeastObject = Union[
FeatureView,
OnDemandFeatureView,
RequestFeatureView,
BatchFeatureView,
StreamFeatureView,
Entity,
Expand All @@ -36,7 +33,6 @@
FeastObjectSpecProto = Union[
FeatureViewSpec,
OnDemandFeatureViewSpec,
RequestFeatureViewSpec,
StreamFeatureViewSpec,
EntitySpecV2,
FeatureServiceSpec,
Expand Down
Loading

0 comments on commit cf58ebe

Please sign in to comment.