Case study · Data warehouse & reporting
A Dagster + ClickHouse medallion warehouse ingesting CDC and batch data from four source systems, powering regulatory and operational reporting — built on reusable asset factories.
Redacted case study. Employer and product brands are anonymized; hostnames, database names and credentials are omitted. Metrics are real figures.
The core platform at a national electronic-payments company: a data warehouse that ingests from four source systems — a QRIS merchant-acquiring product (MySQL), two virtual-account collection products (MongoDB), and a payment-orchestration platform (PostgreSQL) — through a medallion architecture (raw → cleansed → datamart / reports).
Rather than hand-writing each pipeline, the platform is built on two reusable factories: one for real-time Kafka/Debezium CDC assets and one for daily-partitioned batch, cleansed, and datamart assets — each with a pluggable extractor registry and a checks factory that attaches data-quality assertions and chat alerting. This keeps a large surface of pipelines consistent and testable; the suite grew to 972 tests at 91.8% coverage with a CI gate. I also authored the architecture-decision record and the live-table schema-change migration recipe the team now uses, plus a gap analysis that graded the platform's framework usage and drove several improvements.
The warehouse powers a broad set of scheduled reports — exported as formatted Excel workbooks to a shared drive, with success notifications to the team chat:
| Domain | Reports |
|---|---|
| Merchant-acquiring | Daily transaction + fee; merchant-status (dormant / new / reactivated) classification; aggregator breakdowns; channel / geographic / tier datamarts; a central-bank spatial regulatory report (deriving district from sub-district via an official statistics reference) |
| Virtual-account collection | Weekly & monthly summaries; a client dormancy ladder; active-VA fee reports; late-arrival handling |
| Orchestration / switching | Weekly fee & revenue; settlement-fee reporting; biller summaries |
| Regulatory validation | Monthly reconciliation of an independent reporting program against the warehouse pipeline, with an evidence workbook |
FINAL table per card were moved onto pre-aggregated tables fed by refreshable materialized views.