How an Integer Overflow Silently Destroyed My Production Data

A surrogate key generator overflowed. Spark said nothing. The MERGE overwrote legitimate rows. Here’s the full story — and the guardrails that would have caught it.

February 27, 2026 · 6 min · Christophe B.