The order service writes each status change as a new row into order_status, a ReplacingMergeTree(version) table with the sorting key order_id, as in the lesson. Before your code, the check creates it and moves status_log into it in three inserts, so no merge has run yet.