The query returned fast, but the schema had changed. A new column appeared in the results, and everything downstream started to fail.
Adding a new column to a database table is simple in syntax but dangerous in effect. It can break queries, distort metrics, and slow key paths if handled without care. Schema changes live at the heart of production systems. They demand precision and a repeatable process.
Before creating a new column, confirm exactly what it must store and how it will be used. Pick the smallest data type that meets the requirement. Avoid nullability unless it is essential. Decide whether it should have a default value to keep existing rows consistent.
When adding the column, consider whether the change will require backfilling existing data. Backfills can cause load spikes. Use batched updates and monitor write amplification. In large tables, an online DDL tool or database feature that allows non-blocking schema change will protect uptime.