简体   繁体   中英

Using BigQuery in Google Apps Scripts to connect to Google Spreadsheet

I've enabled BigQuery in API console and in my GAS app and I tried using the example from this thread: Accessing BigQuery with Google Spreadsheet

I got the Project ID but I don't know how to connect to my Google Spreadsheet.

How do you use BigQuery in GAS to connect to Google Spreadsheet anyway? Do you input the Spreadsheet as a dataset in the API console? How is that done?

The V2 documentation has several tutorials and samples but none about connecting to a Google Spreadsheet using GAS.

Thanks.

You can call Google BigQuery from Spreadsheet using GAS. But you can't read values in Google Spreadsheet from Google BigQuery Queries.

Google BigQuery is separate product where you have to upload the data into Google BigQuery to query. Google BigQuery wont read the Spreadsheet automatically. You got to export the Spreasheet as CSV first and upload into BigQuery before you can query the data.

What you can do is you can use the Spreadsheet as a Front end to BigQuery , for example users can populate some fields in the spreadsheet and GAS can use that values and query the BigQuery to get results and populate the spreadsheet and use visualization gadgets like charts in spreadsheet to view the data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM