I am new to bigquery, i have a column 'device' which has nested struct properties looks like this
device
| brand_name | brand_id | country |
|---|---|---|
| huawei | 34j0 | china |
| brand_name | brand_id | country |
|---|---|---|
| sony | ds5g | japan |
we can convert those device properties to column by doing this `
SELECT
device.brandname
device.brand_id
device.country
from table
( the structre of the data is STRUCT<brand_name STRING,brand_id STRING,country STRING>)
but the problem is we can not access every individual elements in device ( like device.brandname device.brand_id....etc) if properties have n number of keys, is there a way to loop all the keys in device column in one go, thank you
