从新创建的BigQuery项目中查询任何样本数据集

时间:2021-07-05 15:25:27

Is there any way to query sample datasets as here

有没有办法在这里查询样本数据集

https://developers.google.com/bigquery/docs/sample-tables

from a newly created Project using my application in GAE.Or do i need link the sample dataset to the newly created project in Big Query.If so how?

从我在GAE中使用我的应用程序的新创建的项目。或者我需要将样本数据集链接到Big Query中新创建的项目。如果是这样的话?

1 个解决方案

#1


0  

You can access BigQuery's publicdata:samples tables from any Google Developer project (that has the BigQuery API activated).

您可以从任何Google Developer项目(已激活BigQuery API)访问BigQuery的publicdata:samples表。

When building App Engine applications that access the BigQuery API, there are several authorization choices, which you can read about here:

在构建访问BigQuery API的App Engine应用程序时,有几个授权选项,您可以在此处阅读:

Web Server Auth flow: https://developers.google.com/bigquery/docs/authorization#web-server-applications

Web服务器验证流程:https://developers.google.com/bigquery/docs/authorization#web-server-applications

App Engine Service Account Auth flow: https://developers.google.com/bigquery/docs/authorization#service-accounts-appengine

App Engine服务帐户验证流程:https://developers.google.com/bigquery/docs/authorization#service-accounts-appengine

There's another great sample (Python) here: https://code.google.com/p/google-bigquery-tools/source/browse/samples/python/appengine-bq-join/

这里有另一个很棒的示例(Python):https://code.google.com/p/google-bigquery-tools/source/browse/samples/python/appengine-bq-join/

#1


0  

You can access BigQuery's publicdata:samples tables from any Google Developer project (that has the BigQuery API activated).

您可以从任何Google Developer项目(已激活BigQuery API)访问BigQuery的publicdata:samples表。

When building App Engine applications that access the BigQuery API, there are several authorization choices, which you can read about here:

在构建访问BigQuery API的App Engine应用程序时,有几个授权选项,您可以在此处阅读:

Web Server Auth flow: https://developers.google.com/bigquery/docs/authorization#web-server-applications

Web服务器验证流程:https://developers.google.com/bigquery/docs/authorization#web-server-applications

App Engine Service Account Auth flow: https://developers.google.com/bigquery/docs/authorization#service-accounts-appengine

App Engine服务帐户验证流程:https://developers.google.com/bigquery/docs/authorization#service-accounts-appengine

There's another great sample (Python) here: https://code.google.com/p/google-bigquery-tools/source/browse/samples/python/appengine-bq-join/

这里有另一个很棒的示例(Python):https://code.google.com/p/google-bigquery-tools/source/browse/samples/python/appengine-bq-join/