72. What Changed Between Two Versions
Difficulty: Hard · Topics: Lakehouse, Joins, Strings
An advanced problem: unlock it to open the statement, sample data and editor. Graded on 3 test cases.
Learn the concepts
- Time travel and RESTORE · 5 min read. Query or roll back to any earlier version of a table, and what retention does to that promise.
- eqNullSafe (<=>) · 4 min read. Equality where null matches null: the fix for joins and comparisons that silently drop null keys.
- when / otherwise · 4 min read. CASE WHEN logic inside a column: first match wins, and a missing otherwise means null.
PySpark functions you'll practise
- join
- isNull
- isNotNull
- eqNullSafe
- when / otherwise
- filter
- select
- withColumn
Related problems
- Apply a CDC Batch (MERGE Semantics) · Hard · Lakehouse, Window Functions, Joins
- Net Changes from a Change Feed · Hard · Lakehouse, Aggregations, Conditional Logic
- 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