DevelopersTV

BigQuery Arrays (Repeated Fields)

Dickson Tsai — Mar 27, 2022 — tutorial

Why watch

A comprehensive tutorial on BigQuery's array (repeated field) data type, covering array creation with ARRAY, ARRAY_AGG, and GENERATE_ARRAY; element access via OFFSET, ORDINAL, and SAFE_OFFSET; flattening with UNNEST and CROSS JOIN UNNEST; and scanning functions like ARRAY_LENGTH, EXISTS, and IN. Includes practical examples using the Austin Bikeshare dataset. Ideal for SQL developers learning BigQuery-specific features and data engineers working with denormalized schemas.