An end-to-end data engineering project that transforms raw coffee sales data in Snowflake into analytics-ready datasets using dbt, with Apache Airflow orchestrating the workflow in Docker.
This project demonstrates an ELT pipeline built around a coffee sales dataset containing 3,636 transactions.
Raw sales data is stored in Snowflake, transformed using dbt, and organised into staging and analytical models. Apache Airflow orchestrates the workflow, including connection validation, model execution and data quality testing.
The pipeline integrates three main components:
- Snowflake: Stores the raw coffee sales data and the resulting analytical models.
- dbt: Performs SQL transformations, develops staging and mart models, and runs data quality tests.
- Apache Airflow: Orchestrates the pipeline, manages task dependencies and executes the dbt workflow.
The environment is containerised using Docker and Docker Compose.
stg_coffee_sales
Standardises the raw transaction data by renaming columns and preparing the data for analytical transformations.
mart_daily_coffee_sales
Aggregates sales data by date, including:
- Total transactions
- Distinct coffee types
- Total revenue
- Average transaction value
mart_coffee_product_performance
Aggregates sales performance by coffee product, including:
- Total transactions
- Total revenue
- Average selling price
dbt tests validate the transformed data, including:
- Not-null checks
- Unique key checks
- Data completeness
The pipeline runs 16 dbt tests as part of its validation workflow.
- Snowflake
- dbt
- Apache Airflow
- Docker and Docker Compose
- SQL and Python
- Git and GitHub
- Building an ELT pipeline using a cloud data warehouse.
- Developing modular SQL transformations with dbt.
- Implementing data quality checks.
- Orchestrating dependent tasks with Apache Airflow.
- Containerising and managing an Airflow environment with Docker.
- Integrating Snowflake, dbt and Airflow into one workflow.




