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
@@ -39,6 +40,26 @@ class StreamFeatureView(FeatureView):
39
40
"""
40
41
NOTE: Stream Feature Views are not yet fully implemented and exist to allow users to register their stream sources and
41
42
schemas with Feast.
43
+
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
48
+
this group of features lives forever. Note that large ttl's or a ttl of 0
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.
53
+
owner: The owner of the on demand feature view, typically the email of the primary
54
+
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.
42
63
"""
43
64
44
65
def__init__(
@@ -54,18 +75,19 @@ def __init__(
54
75
schema: Optional[List[Field]] =None,
55
76
source: Optional[DataSource] =None,
56
77
aggregations: Optional[List[Aggregation]] =None,
57
-
mode: Optional[str] ="spark",# Mode of ingestion/transformation
58
-
timestamp_field: Optional[str] ="",# Timestamp for aggregation
78
+
mode: Optional[str] ="spark",
79
+
timestamp_field: Optional[str] ="",
59
80
udf: Optional[MethodType] =None,
60
81
):
61
82
warnings.warn(
62
83
"Stream Feature Views are experimental features in alpha development. "
63
84
"Some functionality may still be unstable so functionality can change in the future.",
64
85
RuntimeWarning,
65
86
)
87
+
66
88
ifsourceisNone:
67
-
raiseValueError("Stream Feature views need a source specified")
68
-
# source uses the batch_source of the kafkasource in feature_view
89
+
raiseValueError("Stream Feature views need a source to be specified")
0 commit comments