PySpark Streaming
6 interview problems on Structured Streaming: micro-batches, output modes, watermarks and late data, windows and stream joins, from easy to hard.
Learn Streaming
- Structured Streaming basics · 8 min read. Streams as an unbounded table: sources, sinks, triggers, output modes and checkpoints.
- Watermarks and late data · 8 min read. Event time vs processing time, how watermarks bound state, and what happens to late rows.
- Streaming into Delta tables · 7 min read. Write a stream into a Delta table exactly once, and read a Delta table as a stream.
- Incremental file ingestion · 7 min read. Load each new file exactly once: the streaming file source, Auto Loader, COPY INTO, schema drift and backfills.
- Live Page View Counts · Easy · Streaming, Aggregations
- Enrich a Stream of Orders with Customer Data · Easy · Streaming, Joins, Filtering & Selection
- Click Counts in 5-Minute Windows with Late Data · Medium · Streaming, Aggregations, Filtering & Selection
- Drop Duplicate Events from a Retrying Producer · Medium · Streaming, Filtering & Selection
- Hourly Revenue per Store, Updated Live · Medium · Streaming, Aggregations, Filtering & Selection
- Trending Searches in Sliding Windows · Hard · Streaming, Aggregations, Filtering & Selection
Browse
Topics: Window Functions · Joins · Aggregations · Pivot, Unpivot & Rollup · Arrays · Null Handling · Conditional Logic · Dates · Filtering & Selection · Strings · Data Lake · Lakehouse · Streaming · Data Prep for AI · Spark Performance
Difficulty: Easy · Medium · Hard · Learn · All problems · dbt practice