The query ran with no errors, but the output was wrong. A new column had appeared, and it didn’t belong.
Creating a new column in any data system can be trivial or dangerous. Trivial when the schema is small. Dangerous when the table sits at the center of production. The decision changes storage, indexing, queries, and sometimes the shape of entire services.
In SQL, adding a new column is more than typing ALTER TABLE. You must consider default values, null handling, and migration speed. On massive datasets, schema changes can lock tables, delay writes, or push CPU usage through the roof. For real‑time systems, this risk demands zero‑downtime migration patterns.
In NoSQL, adding a new column often means defining a new field in documents. The schema is flexible, but flexibility hides costs. Older records may lack the field entirely. Queries must handle mixed shapes until a backfill runs. If you skip the backfill, indexes will fragment.