Skip to content

Commit ce6b085

Browse files
committed
upgrade feature_store.yaml
Signed-off-by: Danny Chiao <danny@tecton.ai>
1 parent 51d1b6c commit ce6b085

8 files changed

Lines changed: 20 additions & 11 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
**/__pycache__
55
terraform.tfstate
66
terraform.tfstate.backup
7-
.terraform*
7+
.terraform*
8+
*.iml

module_0/client_aws/feature_store.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ provider: aws
33
registry: s3://feast-workshop-danny/registry.pb # TODO: Replace with your bucket
44
online_store: null
55
offline_store:
6-
type: file
6+
type: file
7+
entity_key_serialization_version: 2

module_0/client_gcp/feature_store.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ provider: gcp
33
registry: gs://feast-workshop-danny/registry.pb # TODO: Replace with your bucket
44
online_store: null
55
offline_store:
6-
type: file
6+
type: file
7+
entity_key_serialization_version: 2

module_0/feature_repo_aws/feature_store.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ provider: aws
33
registry: s3://feast-workshop-danny/registry.pb # TODO: Replace with your bucket
44
online_store: null
55
offline_store:
6-
type: file
6+
type: file
7+
entity_key_serialization_version: 2

module_0/feature_repo_gcp/feature_store.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ provider: gcp
33
registry: gs://feast-workshop-danny/registry.pb # TODO: Replace with your bucket
44
online_store: null
55
offline_store:
6-
type: file
6+
type: file
7+
entity_key_serialization_version: 2

module_1/feature_repo/entities.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
from feast import (
22
Entity,
3-
ValueType,
43
)
54

65
driver = Entity(
76
name="driver",
87
join_keys=["driver_id"],
9-
value_type=ValueType.INT64,
108
description="driver id",
119
)

module_1/feature_repo/feature_store.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ online_store:
88
connection_string: localhost:6379
99
offline_store:
1010
type: file
11+
entity_key_serialization_version: 2
12+

module_1/feature_repo/features.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,19 @@
44
FeatureView,
55
Field,
66
)
7-
from feast.types import Float32
7+
from feast.types import Float32, Int64
88

99
from data_sources import *
1010
from entities import *
1111

1212
driver_daily_features_view = FeatureView(
1313
name="driver_daily_features",
14-
entities=["driver"],
14+
entities=[driver],
1515
ttl=timedelta(seconds=8640000000),
16-
schema=[Field(name="daily_miles_driven", dtype=Float32),],
16+
schema=[
17+
Field(name="driver_id", dtype=Int64),
18+
Field(name="daily_miles_driven", dtype=Float32),
19+
],
1720
online=True,
1821
source=driver_stats_push_source,
1922
tags={"production": "True"},
@@ -23,9 +26,10 @@
2326
driver_hourly_stats_view = FeatureView(
2427
name="driver_hourly_stats",
2528
description="Hourly features",
26-
entities=["driver"],
29+
entities=[driver],
2730
ttl=timedelta(seconds=8640000000),
2831
schema=[
32+
Field(name="driver_id", dtype=Int64),
2933
Field(name="conv_rate", dtype=Float32),
3034
Field(name="acc_rate", dtype=Float32),
3135
Field(name="miles_driven", dtype=Float32),

0 commit comments

Comments
 (0)