Skip to content
Lohith KovuriResume

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

From the resume. There's no public repository yet.
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.

Stack

PySparkAWS EMRAirflowAWS GlueAmazon Redshift

Evidence

Limitations, stated plainly

  • No public repository yet, so the runtime numbers can't be independently checked from this site.
Engineering PlaygroundTry the data-quality checks yourself: solve a SQL mystery in your browser

More case studies