1

我正在尝试运行以下查询,但始终收到“错误:意外。请再试一次':

select sum( ssw.stem_count ) as sum_stem_count, ssw.stem, min( ssw.term )
from ( select * from mediacloud.ssw_2011_11_14_2011_11_20, mediacloud.ssw_2011_11_21_2011_11_27 )
    as ssw left join mediacloud.topic_obama as ssw_q
    on ssw.stories_id = ssw_q.stories_id 
  group by ssw.stem order by sum_stem_count desc limit 1000;

以下查询工作正常:

select sum( ssw.stem_count ) as sum_stem_count, ssw.stem, min( ssw.term )
  from mediacloud.ssw_2011_11_14_2011_11_20 as ssw 
      left join mediacloud.topic_obama as ssw_q
    on ssw.stories_id = ssw_q.stories_id 
  group by ssw.stem order by sum_stem_count desc limit 1000;

文档似乎说子查询可以用作 from 子句中的条目,但我无法让它工作。我究竟做错了什么?

4

1 回答 1

0

您可能遇到了与此处相同的问题: bigquery 中的 if 子句 (我意识到不涉及 if 子句,但它看起来是相关的)。我们正在积极调查并希望在今天晚些时候有一个解决方案。

于 2012-09-11T20:24:55.463 回答