Skip to content

Commit 96ab3f7

Browse files
committed
Add other samples
1 parent 2b230ee commit 96ab3f7

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

misc_samples/entityless_fv.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
global_stats_fv = FeatureView(
2+
name="global_stats",
3+
entities=[],
4+
features=[
5+
Feature(name="total_trips_today_by_all_drivers", dtype=ValueType.INT64),
6+
],
7+
batch_source=BigQuerySource(
8+
table_ref="feast-oss.demo_data.global_stats"
9+
)
10+
)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
$ feast init feature_repo
2+
Creating a new Feast repository in /home/tsotne/feast/feature_repo.
3+
4+
$ cd feature_repo
5+
6+
$ feast apply
7+
Registered entity driver_id
8+
Registered feature view driver_hourly_stats
9+
Deploying infrastructure for driver_hourly_stats
10+
11+
$ feast materialize-incremental $(date +%Y-%m-%d)
12+
Materializing 1 feature views to 2021-09-09 17:00:00-07:00 into the sqlite online store.
13+
14+
driver_hourly_stats from 2021-09-09 16:51:08-07:00 to 2021-09-09 17:00:00-07:00:
15+
100%|████████████████████████████████████████████████████████████████| 5/5
16+
[00:00<00:00, 295.24it/s]
17+
18+
$ feast serve
19+
# This is an experimental feature. It's intended for early testing and feedback, and could
20+
# change without warnings in future releases.
21+
INFO: Started server process [8889]
22+
09/10/2021 10:42:11 AM INFO:Started server process [8889]
23+
INFO: Waiting for application startup.
24+
09/10/2021 10:42:11 AM INFO:Waiting for application startup.
25+
INFO: Application startup complete.
26+
09/10/2021 10:42:11 AM INFO:Application startup complete.
27+
INFO: Uvicorn running on http://127.0.0.1:6566 (Press CTRL+C to quit)
28+
09/10/2021 10:42:11 AM INFO:Uvicorn running on http://127.0.0.1:6566 (Press CTRL+C to quit)

0 commit comments

Comments
 (0)