Internal error on NEST when not flattening results

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

    NEST is unfortunately incompatible with unflattened results, as also mentioned here.

    A workaround that might work for you is using SPLIT(GROUP_CONCAT(label)) instead of using NEST. That should work if your label field is of type string. You may need to choose an explicit separator for GROUP_CONCAT if your labels contain commas, but I think this solution should be workable.

提交回复
热议问题