Skip to content
RED SAG Skills
medium10 pts · first answer countssparkspark-sqlwindow-functions

Latest row per customer

You need the most recent address row for each customer from a history table. Which approach is correct and scales well?

w = Window.partitionBy("customer_id").orderBy(F.col("updated_at").desc())
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions