How do you model nested and repeated data in BigQuery, and when do you UNNEST vs normalize into separate tables?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to model nested and repeated data in BigQuery with STRUCT and ARRAY columns, and when to flatten with UNNEST or move child records into their own tables. Tests schema trade-offs, scan cost, update patterns and the common pitfalls of unnesting.