Case study · personal project
RetailBench Data Platform
PySpark on EMR over 100+ GB of TPC-H data into a dimensional Redshift warehouse, tuned 44% faster
- TPC-H benchmark data
- 100+ GB
- minutes per run
- 24.6 → 13.8
- faster
- 44%
The problem
Spark jobs over large benchmark datasets run slowly when partitioning, joins, and skewed keys are left at their defaults.
The approach
A PySpark pipeline on EMR for 100+ GB of TPC-H benchmark data that loads a dimensional Redshift warehouse, built with Airflow and Glue, then tuned for runtime.
Architecture
Select a component, or play the flow.
Step 1 of 4
TPC-H data (100+ GB)
Over 100 GB of data from TPC-H, a standard decision-support benchmark.
Engineering decisions
Partition for the workload
Partition counts and keys were tuned to the job instead of left at defaults.
Broadcast small tables
Broadcasting small dimension tables avoids expensive shuffles in joins.
Handle skew explicitly
Skewed keys were addressed so a few hot partitions don't stall the whole stage.
Limitations, stated plainly
- No public repository yet, so the runtime numbers can't be independently checked from this site.
More case studies
PipelineMedic AI
Pipeline repair agent: deterministic detectors find the failure, an LLM proposes the fix, a human approves the risky ones
RAG Sentinel
LLM evaluation framework: a validated LLM judge, prompt A/B tests, and a hallucination-risk classifier with drift monitoring
AWS Streaming Data Platform
Kafka to S3/Iceberg lakehouse with layered zones, Glue PySpark jobs, and a Kimball model in Athena and dbt