Skip to content

Commit 8d8dcde

Browse files
committed
udpate proto
Signed-off-by: hao-xu5 <hxu44@apple.com>
1 parent e707552 commit 8d8dcde

4 files changed

Lines changed: 31 additions & 19 deletions

File tree

‎protos/feast/core/OnDemandFeatureView.proto‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import "feast/core/FeatureViewProjection.proto";
2828
import "feast/core/Feature.proto";
2929
import "feast/core/DataSource.proto";
3030
import "feast/core/Transformation.proto";
31+
import "feast/core/Aggregation.proto";
3132

3233
message OnDemandFeatureView {
3334
// User-specified specifications of this feature view.
@@ -70,6 +71,10 @@ message OnDemandFeatureViewSpec {
7071
// List of specifications for each entity defined as part of this feature view.
7172
repeated FeatureSpecV2 entity_columns = 14;
7273
bool singleton = 15;
74+
75+
// Aggregation definitions
76+
repeated Aggregation aggregations = 16;
77+
7378
}
7479

7580
message OnDemandFeatureViewMeta {

‎sdk/python/feast/protos/feast/core/FeatureService_pb2.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class FeatureServiceSpec(google.protobuf.message.Message):
7171
"""Name of Feast project that this Feature Service belongs to."""
7272
@property
7373
def features(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.FeatureViewProjection_pb2.FeatureViewProjection]:
74-
"""Represents a projection that's to be applied on top of the FeatureView.
74+
"""Represents a projection that's to be applied on top of the FeatureView.
7575
Contains data such as the features to use from a FeatureView.
7676
"""
7777
@property

‎sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.py‎

Lines changed: 18 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sdk/python/feast/protos/feast/core/OnDemandFeatureView_pb2.pyi‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ limitations under the License.
1818
"""
1919
import builtins
2020
import collections.abc
21+
import feast.core.Aggregation_pb2
2122
import feast.core.DataSource_pb2
2223
import feast.core.FeatureViewProjection_pb2
2324
import feast.core.FeatureView_pb2
@@ -108,6 +109,7 @@ class OnDemandFeatureViewSpec(google.protobuf.message.Message):
108109
ENTITIES_FIELD_NUMBER: builtins.int
109110
ENTITY_COLUMNS_FIELD_NUMBER: builtins.int
110111
SINGLETON_FIELD_NUMBER: builtins.int
112+
AGGREGATIONS_FIELD_NUMBER: builtins.int
111113
name: builtins.str
112114
"""Name of the feature view. Must be unique. Not updated."""
113115
project: builtins.str
@@ -139,6 +141,9 @@ class OnDemandFeatureViewSpec(google.protobuf.message.Message):
139141
def entity_columns(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Feature_pb2.FeatureSpecV2]:
140142
"""List of specifications for each entity defined as part of this feature view."""
141143
singleton: builtins.bool
144+
@property
145+
def aggregations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[feast.core.Aggregation_pb2.Aggregation]:
146+
"""Aggregation definitions"""
142147
def __init__(
143148
self,
144149
*,
@@ -156,9 +161,10 @@ class OnDemandFeatureViewSpec(google.protobuf.message.Message):
156161
entities: collections.abc.Iterable[builtins.str] | None = ...,
157162
entity_columns: collections.abc.Iterable[feast.core.Feature_pb2.FeatureSpecV2] | None = ...,
158163
singleton: builtins.bool = ...,
164+
aggregations: collections.abc.Iterable[feast.core.Aggregation_pb2.Aggregation] | None = ...,
159165
) -> None: ...
160166
def HasField(self, field_name: typing_extensions.Literal["feature_transformation", b"feature_transformation", "user_defined_function", b"user_defined_function"]) -> builtins.bool: ...
161-
def ClearField(self, field_name: typing_extensions.Literal["description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "owner", b"owner", "project", b"project", "singleton", b"singleton", "sources", b"sources", "tags", b"tags", "user_defined_function", b"user_defined_function", "write_to_online_store", b"write_to_online_store"]) -> None: ...
167+
def ClearField(self, field_name: typing_extensions.Literal["aggregations", b"aggregations", "description", b"description", "entities", b"entities", "entity_columns", b"entity_columns", "feature_transformation", b"feature_transformation", "features", b"features", "mode", b"mode", "name", b"name", "owner", b"owner", "project", b"project", "singleton", b"singleton", "sources", b"sources", "tags", b"tags", "user_defined_function", b"user_defined_function", "write_to_online_store", b"write_to_online_store"]) -> None: ...
162168

163169
global___OnDemandFeatureViewSpec = OnDemandFeatureViewSpec
164170

0 commit comments

Comments
 (0)