71. Net Changes from a Change Feed
Difficulty: Hard · Topics: Lakehouse, Aggregations, Conditional Logic
An advanced problem: unlock it to open the statement, sample data and editor. Graded on 3 test cases.
Learn the concepts
- Change Data Feed · 5 min read. Read the row-level inserts, updates and deletes made to a Delta table between two versions.
- Streaming into Delta tables · 7 min read. Write a stream into a Delta table exactly once, and read a Delta table as a stream.
- max_by / min_by · 4 min read. Return the value from the row where another column is largest or smallest, in one aggregate.
PySpark functions you'll practise
- groupBy
- agg
- max_by
- min_by
- when / otherwise
- filter
- select
Related problems
- What Changed Between Two Versions · Hard · Lakehouse, Joins, Strings
- Apply a CDC Batch (MERGE Semantics) · Hard · Lakehouse, Window Functions, Joins
- Rebuild a Table from Its Transaction Log · Medium · Lakehouse, Joins, Aggregations
- Files VACUUM Can Delete · Medium · Lakehouse, Joins, Aggregations
- Iceberg Hidden Partition Layout · Medium · Lakehouse, Aggregations, Dates
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