我在玩 bigquery 并遇到了一个问题,我的查询是:
SELECT * FROM (
SELECT a.title, a.counter , MAX(b.num_characters) as max
FROM (
SELECT title, count(*) as counter FROM publicdata:samples.wikipedia
GROUP EACH BY title
ORDER BY counter DESC
LIMIT 10
) a JOIN
(SELECT title,num_characters FROM publicdata:samples.wikipedia
) b ON a.title = b.title
GROUP BY a.title, a.counter)
LIMIT 1;
虽然这是有效的,但我得到的响应太大而无法返回。第一个子查询运行良好,我想做的是获得更多的列。但我失败了。