This example demonstrates Feast's native OpenLineage integration for automatic data lineage tracking.
For full documentation, see the OpenLineage Reference.
pip install feast[openlineage]- Start Marquez:
docker run -p 5000:5000 -p 3000:3000 marquezproject/marquez- Run the demo:
python openlineage_demo.py --url http://localhost:5000- View lineage at http://localhost:3000
The demo creates a sample feature repository and demonstrates:
- Entity:
driver_id - DataSource:
driver_stats_source(Parquet file) - FeatureView:
driver_hourly_statswith features like conversion rate, acceptance rate - FeatureService:
driver_stats_serviceaggregating features
When you run the demo, it will:
- Create the feature store with OpenLineage enabled
- Apply the features (emits lineage events)
- Materialize features (emits START/COMPLETE events)
- Retrieve features (demonstrates online feature retrieval)
After running the demo, you'll see this lineage in Marquez:
driver_stats_source ──┐
├──→ feast_feature_views_openlineage_demo ──→ driver_hourly_stats
driver_id ────────────┘ │
▼
feature_service_driver_stats_service ──→ driver_stats_service