DataEng Hub

Articles

Long-form deep dives and short learnings from real pipelines — every code block runs.

Featuredpyspark

Why AQE Coalesces Shuffle Partitions (and When It Can't Help)

How Adaptive Query Execution merges small shuffle partitions at runtime, the settings that control it, and the cases where you still have to tune.

Read the article →

Article10 min read

Data Skew in Spark: Detect It and Fix It

Find the hot key behind a stage that never finishes, then fix it with AQE skew joins, key cleanup, hot-key isolation or salting, in that order.

Article7 min read

Testing PySpark Code with pytest

A test pyramid that actually fits a Spark pipeline — fast unit tests for transform logic, a shared local SparkSession, and a pattern for Delta-backed integration tests.

Learning1 min read

Why AQE coalesces shuffle partitions

Adaptive Query Execution merges tiny post-shuffle partitions at runtime, so stop hand-tuning spark.sql.shuffle.partitions for every job.

Article2 min read

Cost control for Databricks job clusters

The five levers that actually move a Databricks bill: job clusters over all-purpose, right-sized autoscaling, spot instances, photon where it pays, and killing idle time.