Worklog Lakehouse
A Microsoft Fabric medallion in PySpark and Python that turns two time-tracking systems, a user directory and a CRM into one governed star schema: who logged what, against which client, compared with what was sold. Both engines run the same logic, a parity gate proves they produce identical tables, and everything deploys to Fabric with fabric-cicd.
The problem
At work I built this kind of platform on Microsoft Fabric, in production: it brings logged hours from two time-tracking systems into the lakehouse behind finance's reports. The hard part wasn't the APIs, it was the people. The same person showed up under different emails, legacy domains and swapped "last.first" logins. Deactivated accounts came back with blank emails, entries were edited or deleted weeks later, and project keys had to stay stable because finance referenced them.
This project adapts that platform, with Claude Code, for a fictional company on synthetic data, so it can be public and anyone can run it. Everything that identified the employer, its people or its clients was removed.
What's real and what's simulated
| Fabric items in Git format, fabric-cicd deploy, parameter.yml per environment | Real |
| Notebooks, Delta tables, MERGE, quality gate, run log | Real, and the same files run locally |
| CI: lint, item checks, end-to-end runs on a temporary lakehouse | Real |
| Spark version of silver and the fact table (PySpark, Spark SQL, Delta MERGE) | Real, identical to the Python path (checked in CI) |
| Source systems (timesheets, issue tracker, directory, CRM) | Synthetic, deterministic, with real-world quirks |
| Running on Microsoft Fabric | Yes, in production (a work tenant, so it isn't linked here); this public version uses the same items and the same fabric-cicd deploy |
| Power BI: Direct Lake semantic model and report | Real: 26 DAX measures, each checked against the lakehouse (190 values); a 4-page report |
| Spark tuning: partitioning, OPTIMIZE / Z-ORDER / V-Order, VACUUM | Real, checked in the Delta history in CI |
Run it yourself
git clone https://github.com/gabebulacio/worklog-lakehouse cd worklog-lakehouse python run.py setup # Python path; add Java 17 + requirements-spark.txt for Spark python run.py demo # backfill + 7 daily runs python run.py sql "select * from gold_mart_coverage_month"
PySpark · Spark SQL · Delta Lake · Microsoft Fabric (Lakehouse, Python and Spark notebooks, Data Pipelines, Variable Library) · fabric-cicd · Python · DuckDB · GitHub Actions. All people, clients and emails are synthetic.
Want to read the code? The code, tests and README are on GitHub.