How anshlambagit/walmart_airflow_dbt_project works
This repository is a Walmart data-engineering pipeline: CSV data can be loaded into a raw database, while Airflow orchestrates Databricks CDC ingestion and successive dbt freshness, silver, and gold tasks. The DAG excerpt establishes the task order and command selectors; the model tree identifies the corresponding transformations and snapshots, but their SQL dependencies were not sampled. The README provides no further capability details.
Main entry points: orchestrate.py Orchestration DAG · sources.yml Source freshness · silver_t Silver technical · properties.yml Silver technical tests
Components 14
Data ingestion
- Walmart CSV data
walmart_dataset/data - CSV loader
walmart_dataset/load_data.py - Raw database
walmart_dataset/ddl/walmart_schema.sql - Databricks jobs
Airflow orchestration
- Orchestration DAG
airflow_dbt_project/dags/orchestrate.py - dbt target cleanup
airflow_dbt_project/dags/orchestrate.py
dbt transformations
- Source freshness
airflow_dbt_project/walmart_project/models/source/sources.yml - Silver technical
airflow_dbt_project/walmart_project/models/silver_t - Silver technical tests
airflow_dbt_project/walmart_project/models/silver_t/properties.yml - Silver business
airflow_dbt_project/walmart_project/models/silver_b/obt_b.sql - Silver business tests
airflow_dbt_project/walmart_project/tests/test_obt.sql - Gold ephemeral models
airflow_dbt_project/walmart_project/models/gold/ephemeral - Gold dimensions
airflow_dbt_project/walmart_project/snapshots - Gold facts
airflow_dbt_project/walmart_project/models/gold/fact/fact_orders.sql
Connections 20
- CSV loader → Walmart CSV data: reads CSVs
walmart_dataset/load_data.py - CSV loader → Raw database: loads tables
walmart_dataset/load_data.py - Orchestration DAG → Databricks jobs: triggers and polls
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → dbt target cleanup: runs task
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Source freshness: runs freshness check
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Silver technical: runs silver_t
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Silver technical tests: tests silver_t
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Silver business: runs silver_b
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Silver business tests: tests silver_b
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Gold ephemeral models: runs gold models
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Gold dimensions: runs snapshot
airflow_dbt_project/dags/orchestrate.py - Orchestration DAG → Gold facts: runs gold facts
airflow_dbt_project/dags/orchestrate.py - dbt target cleanup → Source freshness: runs before
airflow_dbt_project/dags/orchestrate.py - Source freshness → Silver technical: runs before
- Silver technical → Silver technical tests: runs before
- Silver technical tests → Silver business: runs before
- Silver business → Silver business tests: runs before
- Silver business tests → Gold ephemeral models: runs before
- Gold ephemeral models → Gold dimensions: runs before
- Gold dimensions → Gold facts: runs before