-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathStreamFeatureView.proto
More file actions
109 lines (81 loc) · 3.61 KB
/
StreamFeatureView.proto
File metadata and controls
109 lines (81 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
//
// Copyright 2020 The Feast Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package feast.core;
option go_package = "github.com/feast-dev/feast/go/protos/feast/core";
option java_outer_classname = "StreamFeatureViewProto";
option java_package = "feast.proto.core";
import "google/protobuf/duration.proto";
import "feast/core/OnDemandFeatureView.proto";
import "feast/core/FeatureView.proto";
import "feast/core/Feature.proto";
import "feast/core/DataSource.proto";
import "feast/core/Aggregation.proto";
import "feast/core/Transformation.proto";
message StreamFeatureView {
// User-specified specifications of this feature view.
StreamFeatureViewSpec spec = 1;
FeatureViewMeta meta = 2;
}
// Next available id: 22
message StreamFeatureViewSpec {
// Name of the feature view. Must be unique. Not updated.
string name = 1;
// Name of Feast project that this feature view belongs to.
string project = 2;
// List of names of entities associated with this feature view.
repeated string entities = 3;
// List of specifications for each feature defined as part of this feature view.
repeated FeatureSpecV2 features = 4;
// List of specifications for each entity defined as part of this feature view.
repeated FeatureSpecV2 entity_columns = 5;
// Description of the feature view.
string description = 6;
// User defined metadata
map<string,string> tags = 7;
// Owner of the feature view.
string owner = 8;
// Features in this feature view can only be retrieved from online serving
// younger than ttl. Ttl is measured as the duration of time between
// the feature's event timestamp and when the feature is retrieved
// Feature values outside ttl will be returned as unset values and indicated to end user
google.protobuf.Duration ttl = 9;
// Batch/Offline DataSource where this view can retrieve offline feature data.
DataSource batch_source = 10;
// Streaming DataSource from where this view can consume "online" feature data.
DataSource stream_source = 11;
// Whether these features should be served online or not
bool online = 12;
// Serialized function that is encoded in the streamfeatureview
UserDefinedFunction user_defined_function = 13 [deprecated = true];
// Mode of execution
string mode = 14;
// Aggregation definitions
repeated Aggregation aggregations = 15;
// Timestamp field for aggregation
string timestamp_field = 16;
// Oneof with {user_defined_function, on_demand_substrait_transformation}
FeatureTransformationV2 feature_transformation = 17;
// Enable tiling for efficient window aggregation
bool enable_tiling = 18;
// Hop size for tiling (e.g., 5 minutes). Determines the granularity of pre-aggregated tiles.
// If not specified, defaults to 5 minutes. Only used when enable_tiling is true.
google.protobuf.Duration tiling_hop_size = 19;
// Whether schema validation is enabled during materialization
bool enable_validation = 20;
// User-specified version pin (e.g. "latest", "v2", "version2")
string version = 21;
}