How aznrz/etl_airflow_project works
This is an Airflow-orchestrated ETL pipeline that loads Superstore sales from CSV and reference data from Excel into PostgreSQL, validates raw data, builds staging tables and a star-schema mart, and serves the mart to Power BI. The README documents the main task dependencies; the DAG excerpt shows Python task implementations and SQL-task registration. Some SQL internals and task wiring were not sampled, so edges follow documented relationships rather than inferred SQL calls.
Main entry points: staging Staging tables · fact_sales.sql Sales fact · output Staging CSV files · superstore_raw_dag.py Read CSV
Components 18
Source ingestion
- Airflow DAG
dags/superstore_raw_dag.py - Read CSV
dags/superstore_raw_dag.py - Transform CSV
dags/superstore_raw_dag.py - Read Excel
dags/superstore_raw_dag.py - Transform Excel
dags/superstore_raw_dag.py - Staging CSV files
output - Load raw tables
dags/superstore_raw_dag.py
Quality controls
- PostgreSQL raw
- Data quality checks
dags/sql/dq_checks.sql
Warehouse modeling
- Staging tables
dags/sql/staging - Customer dimension
dags/sql/mart/dim_customer.sql - Product dimension
dags/sql/mart/dim_product.sql - Date dimension
dags/sql/mart/dim_date.sql - Location dimension
dags/sql/mart/dim_location.sql - Sales fact
dags/sql/mart/fact_sales.sql
Reporting
- Power BI
Other components
- Superstore CSV
- Reference Excel
Connections 20
- Superstore CSV → Read CSV: reads
README.md - Read CSV → Transform CSV: passes rows
README.md - Transform CSV → Staging CSV files: writes CSV
dags/superstore_raw_dag.py - Staging CSV files → Load raw tables: loads from
dags/superstore_raw_dag.py - Reference Excel → Read Excel: reads
README.md - Read Excel → Transform Excel: passes rows
README.md - Transform Excel → Staging CSV files: writes CSV
dags/superstore_raw_dag.py - Load raw tables → PostgreSQL raw: writes tables
dags/superstore_raw_dag.py - PostgreSQL raw → Data quality checks: checks data
README.md - Data quality checks → Staging tables: gates build
README.md - Staging tables → Customer dimension: builds from
README.md - Staging tables → Product dimension: builds from
README.md - Staging tables → Date dimension: builds from
README.md - Staging tables → Location dimension: builds from
README.md - Staging tables → Sales fact: builds from
README.md - Customer dimension → Sales fact: joins dimension
README.md - Product dimension → Sales fact: joins dimension
README.md - Date dimension → Sales fact: joins dates
README.md - Location dimension → Sales fact: joins dimension
README.md - Sales fact → Power BI: reports from
README.md