事实1 - 我在BigQuery Web UI中成功运行了如下所示的简单查询
SELECT
a.id AS id,
b.v AS v,
c.w AS w
FROM (SELECT 1 AS id, "abc" AS x, "xyz" AS y) AS a
LEFT JOIN (SELECT "abc" AS x, "111" AS v) AS b ON a.x = b.x
LEFT JOIN (SELECT "xyz" AS y, "222" AS w) AS c ON a.y = c.y
事实2 - 当我尝试将[相同查询]的结果写入具有以下选项的表格时 - 失败!
事实3 - 与表格相同的查询以及以下选项 - 成功!
问题 - 为什么我收到此错误?
注意:
我被问到SO之外的这个问题,所以决定在这里分享。
正如您所看到的那样,“找到了解决方法” - 所以如果没有在实际问题上附带解释/答案,请不要建议如何重新编写查询。