pyspark_etl

Optimize and harden production PySpark ETL pipelines with explicit schemas and explain-based diagnostics.

14|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/ivanshamaev/de-agent-skills --skill pyspark-etl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pyspark_etl
Source: https://github.com/ivanshamaev/de-agent-skills/tree/main/skills/pyspark_etl
Command: npx skills add https://github.com/ivanshamaev/de-agent-skills --skill pyspark-etl

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you design, implement, and review reliable PySpark ETL pipelines that perform well at large scale while preserving correct schemas and correctness under real-world data issues.

Core Features & Use Cases

  • Production ETL design: Define schema contracts, incremental semantics, partitioning, and write modes with explicit, maintainable DataFrame/Spark SQL transformations.
  • Performance optimization: Reduce shuffles and wide transformations, avoid common bottlenecks like small files, shuffle skew, and unnecessary repartitioning, and use Spark plan diagnostics (explain) to guide improvements.
  • Correctness & robustness: Handle joins, deduplication semantics, window frames, nulls, schema evolution boundaries, and targeted testing for transformation logic.

Quick Start

Use the pyspark_etl skill to review your PySpark DataFrame ETL code for join correctness, partitioning strategy, window definitions, and performance risks at GB–TB scale.

Frequently Asked Questions about pyspark_etl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize PySpark ETL pipelines for shuffle overhead and data skew at large scale?

Optimize PySpark ETL pipelines by reducing wide transformations, using explicit join types, and applying Spark plan diagnostics via explain to identify and resolve shuffle overhead and skew. Partitioning strategies and schema contracts further harden production performance.

What is the best way to handle schema contracts and incremental processing in PySpark DataFrames?

Schema contracts and incremental processing in PySpark DataFrames are handled by defining explicit schemas, maintaining partitioning semantics, and using explicit write modes for reliable, maintainable large-scale data transformations.

Why does my PySpark window function produce incorrect aggregation results?

PySpark window function aggregation errors often stem from undefined or implicit window frames. Defining explicit window frames alongside targeted correctness tests for nulls and deduplication semantics ensures robust transformation logic.

Can I use PySpark explain plans to diagnose small file problems and unnecessary repartitioning?

Yes, Spark explain plans diagnose small file problems and unnecessary repartitioning by revealing shuffle stages and write bottlenecks. Focused plan diagnostics guide improvements to avoid these common performance limitations in ETL workloads.

When do I need explicit join types and partitioning strategy for PySpark ETL writes?

Explicit join types and partitioning strategy are needed for PySpark ETL writes when processing GB to TB scale data, preventing shuffle overhead, small files, and ensuring schema evolution boundaries and correctness under real-world data issues.

Does pyspark_etl support production-grade ETL design with Spark SQL transformations?

Yes, pyspark_etl supports production-grade ETL design using explicit, maintainable Spark SQL and DataFrame transformations to define schema contracts, incremental semantics, and write modes for large-scale data processing.