📖 Story
Ola · Trip Data Quality
Tuesday afternoon at Ola's Data Platform team. The mobile app has a habit of silently retrying a trip update if the network blips mid-request, and each retry writes a brand new row into the trips table instead of updating the existing one. Some trips now have two or three rows logged for the same trip_id, each with a slightly different updated_at timestamp — and sometimes a different fare, if the retry happened after the fare was recalculated. Before this table can be trusted for reporting, every trip needs to collapse down to exactly one row: its most recently updated version.