Is there a way to select nested records into a table?

前端 未结 1 1726
借酒劲吻你
借酒劲吻你 2021-02-04 13:15

I have a table, T, in Bigquery which contains simple fields and one nested field.

I would like to effectively \"select * from T where ...\" and store the result in a new

相关标签:
1条回答
  • 2021-02-04 13:30

    All query results get flattened by default, but we've added a "flatten results" flag to the query that you can set to false if you want nested results. This currently only works when you select a destination table and use "allow large results". If you're using the Web UI, this setting is available by clicking on the "show options" button on the query window. If you're calling the API, you can set "flattenResults=False" in the query job configuration.

    Docs for this feature are here.

    0 讨论(0)
提交回复
热议问题