You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/python/feast/stream_feature_view.py
+45-25Lines changed: 45 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
importcopy
2
2
importfunctools
3
3
importwarnings
4
-
fromdatetimeimporttimedelta
4
+
fromdatetimeimportdatetime, timedelta
5
5
fromtypesimportMethodType
6
-
fromtypingimportDict, List, Optional, Union
6
+
fromtypingimportDict, List, Optional, Tuple, Union
7
7
8
8
importdill
9
9
fromgoogle.protobuf.duration_pb2importDuration
@@ -42,26 +42,42 @@ class StreamFeatureView(FeatureView):
42
42
schemas with Feast.
43
43
44
44
Attributes:
45
-
name: str. The unique name of the stream feature view.
46
-
entities: Union[List[Entity], List[str]]. List of entities or entity join keys.
47
-
ttl: timedelta. The amount of time this group of features lives. A ttl of 0 indicates that
45
+
name: The unique name of the stream feature view.
46
+
entities: List of entities or entity join keys.
47
+
ttl: The amount of time this group of features lives. A ttl of 0 indicates that
48
48
this group of features lives forever. Note that large ttl's or a ttl of 0
49
49
can result in extremely computationally intensive queries.
50
-
tags: Dict[str, str]. A dictionary of key-value pairs to store arbitrary metadata.
51
-
online: bool. Defines whether this stream feature view is used in online feature retrieval.
52
-
description: str. A human-readable description.
50
+
schema: The schema of the feature view, including feature, timestamp, and entity
51
+
columns. If not specified, can be inferred from the underlying data source.
52
+
source: DataSource. The stream source of data where this group of features is stored.
53
+
aggregations: List of aggregations registered with the stream feature view.
54
+
mode: The mode of execution.
55
+
timestamp_field: Must be specified if aggregations are specified. Defines the timestamp column on which to aggregate windows.
56
+
online: Defines whether this stream feature view is used in online feature retrieval.
57
+
description: A human-readable description.
58
+
tags: A dictionary of key-value pairs to store arbitrary metadata.
53
59
owner: The owner of the on demand feature view, typically the email of the primary
54
60
maintainer.
55
-
schema: List[Field] The schema of the feature view, including feature, timestamp, and entity
56
-
columns. If not specified, can be inferred from the underlying data source.
57
-
source: DataSource. The stream source of data where this group of features
58
-
is stored.
59
-
aggregations (optional): List[Aggregation]. List of aggregations registered with the stream feature view.
60
-
mode(optional): str. The mode of execution.
61
-
timestamp_field (optional): Must be specified if aggregations are specified. Defines the timestamp column on which to aggregate windows.
62
-
udf (optional): MethodType The user defined transformation function. This transformation function should have all of the corresponding imports imported within the function.
61
+
udf: The user defined transformation function. This transformation function should have all of the corresponding imports imported within the function.
0 commit comments