Search…
PostgreSQL (contrib)

Description

NOTE: The Postgres plugin is a contrib plugin. This means it may not be fully stable.
The PostgreSQL data source allows for the retrieval of historical feature values from a PostgreSQL database for building training datasets as well as materializing features into an online store.

Examples

Defining a Postgres source
1
from feast.infra.offline_stores.contrib.postgres_offline_store.postgres_source import (
2
PostgreSQLSource,
3
)
4
5
driver_stats_source = PostgreSQLSource(
6
name="feast_driver_hourly_stats",
7
query="SELECT * FROM feast_driver_hourly_stats",
8
timestamp_field="event_timestamp",
9
created_timestamp_column="created",
10
)
Copied!
Export as PDF
Copy link
Edit on GitHub