Home / Companies / Firebase / Blog / Post Details
Content Deep Dive

BigQuery Tip: The UNNEST Function

Blog post from Firebase

Post Details
Company
Date Published
Author
Todd Kerpelman
Word Count
1,546
Company Posts That Month
10
Language
English
Hacker News Points
-
Post removed?
No
Summary

Firebase Analytics exports data to BigQuery in nested and repeated structures rather than simple flat tables, with user properties stored as arrays of structs and event records containing arrays of parameters. Although this format can initially make direct field filtering difficult, it avoids requiring joins across separate tables. Using BigQuery Standard SQL and the UNNEST function, analysts can expand arrays into individual rows for querying, filtering, and aggregation while retaining related event or user data when needed. Examples show how to find events by name, filter events by parameter values such as scores, group users by a language property, and combine event-parameter and user-property conditions in a single query.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.