ADR-0005: Stream Transformations
Status
Context
Decision
Stream Feature View
from feast import StreamFeatureView, Entity, Field, Aggregation
from feast.types import Float32
@stream_feature_view(
entities=[entity],
ttl=timedelta(days=30),
owner="[email protected]",
online=True,
schema=[Field(name="dummy_field", dtype=Float32)],
description="Stream feature view with aggregations",
aggregations=[
Aggregation(column="dummy_field", function="max", time_window=timedelta(days=1)),
Aggregation(column="dummy_field2", function="count", time_window=timedelta(days=24)),
],
timestamp_field="event_timestamp",
mode="spark",
source=stream_source,
)
def pandas_view(pandas_df):
df = pandas_df.transform(lambda x: x + 10, axis=1)
return dfStream Processor
Unified Push API
Aggregations
Key Decisions
Consequences
Positive
Negative
References
Last updated
Was this helpful?