$ tree -a
.
βββ data
β βββ driver_stats.parquet
βββ driver_features.py
βββ feature_store.yaml
βββ .feastignore
1 directory, 4 filesproject: my_feature_repo_1
registry: data/metadata.db
provider: local
online_store:
path: data/online_store.db# Ignore virtual environment
venv
# Ignore a specific Python file
scripts/foo.py
# Ignore all Python files directly under scripts directory
scripts/*.py
# Ignore all "foo.py" anywhere under scripts directory
scripts/**/foo.pyfrom datetime import timedelta
from feast import BigQuerySource, Entity, Feature, FeatureView, Field, ValueType
from feast.types import Float32, String
driver_locations_source = BigQuerySource(
table_ref="rh_prod.ride_hailing_co.drivers",
timestamp_field="event_timestamp",
created_timestamp_column="created_timestamp",
)
driver = Entity(
name="driver",
value_type=ValueType.INT64,
description="driver id",
)
driver_locations = FeatureView(
name="driver_locations",
entities=["driver"],
ttl=timedelta(days=1),
schema=[
Field(name="lat", dtype=Float32),
Field(name="lon", dtype=String),
],
source=driver_locations_source,
)