用于BigQuery的Python示例应用程序

时间:2013-09-01 18:29:42

标签: python google-bigquery

我无法找到属于此示例应用的表格: https://code.google.com/p/google-bigquery-tools/source/browse/samples/python/appengine-bq-join/ 我在哪里可以找到实际的表格,因为它们似乎不属于从上面链接下载的代码?

1 个答案:

答案 0 :(得分:1)

看起来使用的示例查询(来自h ere)是:

SELECT wiki_title.title 
FROM (SELECT title 
      FROM publicdata:samples.wikipedia 
      WHERE timestamp > 1262304000) AS wiki_title 
JOIN (SELECT REGEXP_REPLACE(word, r'\W', '') word, COUNT(*) 
      FROM publicdata:samples.shakespeare 
      WHERE LENGTH(word) > 15 GROUP BY word IGNORE CASE) AS shakespeare_word 
ON wiki_title.title = shakespeare_word.word 
GROUP BY wiki_title.title LIMIT 10;"

所涉及的表格为publicdata:samples.wikipediapublicdata:samples.shakespeare,两者都是公开示例。当你打开bigquery web UI时,它们应该出现。