How does BigQuery support schema evolution, and what types of schema changes are allowed without data loss?

Quick Overview

Asks how a BigQuery table's schema can change over time and which changes keep existing data intact. It tests knowledge of adding and relaxing columns, schema update options on load jobs, the limits on type changes, and how to rebuild a table safely when a change is not allowed in place.

How does BigQuery support schema evolution, and what types of schema changes are allowed without data loss?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

How does BigQuery support schema evolution, and what types of schema changes are allowed without data loss? ```hint Sort the changes Group schema changes by what they do to rows that already exist: changes that only add or loosen something, and changes that would force existing values to be rewritten or rejected. ``` ### What a Strong Answer Covers - Which changes BigQuery applies in place without touching existing data - The ways to apply them: DDL, `bq update` or the API, and schema update options on load and query jobs - Which changes are restricted or need a table rebuild, and why - A safe procedure for changes that require rewriting the table ### Follow-up Questions - A source system starts sending a new field in its JSON events. How do you make the daily append load accept it? - You need to change a column from `STRING` to `INT64` on a large partitioned table. How do you plan the change? - Why can a pipeline running `INSERT INTO target SELECT * FROM staging` break after a column is added? - How would you roll out a breaking schema change when dashboards and other teams read the table?

Overview: Asks how a BigQuery table's schema can change over time and which changes keep existing data intact. It tests knowledge of adding and relaxing columns, schema update options on load jobs, the limits on type changes, and how to rebuild a table safely when a change is not allowed in place.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

How does BigQuery support schema evolution, and what types of schema changes are allowed without data loss?

What a Strong Answer Covers Guidance

  • Which changes BigQuery applies in place without touching existing data
  • The ways to apply them: DDL, bq update or the API, and schema update options on load and query jobs
  • Which changes are restricted or need a table rebuild, and why
  • A safe procedure for changes that require rewriting the table

Follow-up Questions Guidance

  • A source system starts sending a new field in its JSON events. How do you make the daily append load accept it?
  • You need to change a column from STRING to INT64 on a large partitioned table. How do you plan the change?
  • Why can a pipeline running INSERT INTO target SELECT * FROM staging break after a column is added?
  • How would you roll out a breaking schema change when dashboards and other teams read the table?