77. Hourly Revenue per Store, Updated Live
Difficulty: Medium · Topics: Streaming, Aggregations, Filtering & Selection
An advanced problem: unlock it to open the statement, sample data and editor. Graded on 3 test cases.
Learn the concepts
- Output modes: append, update, complete · 6 min read. What each mode writes after a batch, which queries allow which mode, and what the sink must support.
- Event-time windows · 7 min read. Tumbling, sliding and session windows, what they cost in state, and when a window is final.
- Watermarks and late data · 8 min read. Event time vs processing time, how watermarks bound state, and what happens to late rows.
PySpark functions you'll practise
- groupBy
- agg
- sum
- select
- withWatermark
- writeStream
Related problems
- 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
- Trending Searches in Sliding Windows · Hard · Streaming, Aggregations, Filtering & Selection
- Live Page View Counts · Easy · Streaming, Aggregations
- Enrich a Stream of Orders with Customer Data · Easy · Streaming, Joins, 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