I would like to save the result set of the following query to a table.
SELECT
g, NEST(x) AS a
FROM
(SELECT 1 AS g, 10 AS x), (SELECT 1 AS g, 20 AS x), (S
This is a known issue with the NEST function and flattenResults set to false: the two aren't compatible with each other at present. We'd like to fix this but I don't have an ETA as the underlying issue is nontrivial.
If you have an existing table with a repeated field, you should be able to successfully SELECT it and output it as a repeated field using flattenResults set to false.