我知道这是Google BigQuery的一个较旧问题,但似乎问题已在2013年中期修复。我想知道最近几个月是否有针对此问题的最新解决方法/修复程序。以下是来自Google示例数据的查询。
SELECT publicdata:samples.natality.mother_age, publicdata:samples.gsod.station_number
FROM [publicdata:samples.natality]
INNER JOIN [publicdata:samples.gsod]
ON publicdata:samples.gsod.year = publicdata:samples.natality.year
LIMIT 100
Query Failed
Error: Unexpected. Please try again.
职位编号:deft-grammar-553:job_eUkW4EhgNvlJPuWPoP1bLL7Ra_w
答案 0 :(得分:2)
感谢您的举报!应该改进该错误消息。
与此同时:使用表别名的相同查询效果很好(尽管我必须将JOIN更改为JOIN EACH以处理两个表的大小)。
而不是:
SELECT publicdata:samples.natality.mother_age, publicdata:samples.gsod.station_number
FROM [publicdata:samples.natality]
INNER JOIN [publicdata:samples.gsod]
ON publicdata:samples.gsod.year = publicdata:samples.natality.year
LIMIT 100
执行:
SELECT a.mother_age, b.station_number
FROM [publicdata:samples.natality] a
INNER JOIN EACH [publicdata:samples.gsod] b
ON a.year = b.year
LIMIT 100