All projects

Personal project · Data engineering

pipeline-etl-retail

In progress

  1. Olist + BCB · BCRP
  2. Python
  3. PostgreSQL (Neon)
  4. dbt
  5. Power BI (pending)
Every day, GitHub Actions orchestrates the flow: Python extracts sales and exchange rates, loads them into PostgreSQL (Neon) and dbt transforms and validates them. Power BI will be connected when the project is finished.

Overview

Problem

Sales reports depend on manual loads and converting currencies by hand, with a risk of errors and duplicated data. A flow was needed that integrates sales and exchange rates every day, validates quality and leaves the data ready for analysis.

Solution

ELT pipeline with Python, dbt, PostgreSQL (Neon), GitHub Actions and Power BI. Every day it runs extraction, the raw load, dbt build with its tests and the run log; the dbt lineage is published on GitHub Pages.

My work

  • Daily pipeline on GitHub Actions (07:00, Lima): extraction, raw load, dbt build with tests and logging to etl_runs.
  • Data-arrival simulator with a watermark and idempotent loads (delete by key and insert, in a single transaction).
  • 138 dbt data quality tests and a controlled failure test: if a test fails, the pipeline stops without advancing the watermark.
  • Amounts in USD and PEN using official BCB and BCRP exchange rates.
  • Reconciliation of sales vs. total paid, explained to the cent.
  • CI on every change: ruff, actionlint, pytest and dbt parse.
  • dbt documentation (lineage) published on GitHub Pages.
  • Read-only PostgreSQL role for Power BI.

Keep exploring

More projects

Let's talk

Looking for someone who turns manual processes into automated workflows and data into decisions? Let’s talk.

Get in touch