Flattening Google Analytics data (with repeated fields) not working anymore

后端 未结 5 1978
情话喂你
情话喂你 2020-12-16 16:54

We have a premium Google Analytics account, which will give us access to row level event data. This data is exported daily to Google Bigquery and for every day a new table w

5条回答
  •  -上瘾入骨i
    2020-12-16 16:55

    If you're using the BigQuery Web Console, select a Destination Table, click Allow Large Results and uncheck Flatten Results.

    If you're using bq command-line tool:

    bq query --allow_large_results --noflatten --destination_table NAME_OF_TABLE  "SELECT * from FLATTEN( [dataset], hits)"
    

提交回复
热议问题