Internal error on NEST when not flattening results

前端 未结 3 1891
你的背包
你的背包 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:14

    Recently found workaround for this issue:

    Try

    SELECT url, labels 
    FROM (
      SELECT url, NEST(label) AS labels
      FROM [mytable]
      GROUP EACH BY url
    ) as a
    CROSS JOIN (SELECT 1) as b  
    

    Note, you have to write result to table with Allow Large Results on and Flatten Results off

提交回复
热议问题