Explain it in 60 seconds
Querying arrays with UNNEST
Data Engineering · BigQuery · Intermediate
How do you query and flatten arrays in BigQuery?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- UNNEST turns an array into rows.
- Use CROSS JOIN UNNEST or a comma join; LEFT JOIN UNNEST keeps rows with empty arrays.
- Access STRUCT fields with dot notation.
- Use subqueries with UNNEST to filter or aggregate inside arrays.
- Avoid flattening unless needed — it multiplies rows.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.