Internal error on NEST when not flattening results

前端 未结 3 1868
你的背包
你的背包 2021-01-20 05:51

I\'m trying to GROUP and return a repeated field into a new table

SELECT url, NEST(label) AS labels
FROM [mytable]
GROUP EACH BY url

It wor

3条回答
  •  隐瞒了意图╮
    2021-01-20 06:07

    From "Query Reference" on NEST() :

    BigQuery automatically flattens query results, so if you use the NEST function on the top level query, the results won't contain repeated fields. Use the NEST function when using a subselect that produces intermediate results for immediate use by the same query.

    So if you want a non-flattened result here, you'd need to do a select * from your other select I'd think

提交回复
热议问题