Google BigQuery

Set up a BigQuery warehouse

If you already have a BigQuery warehouse set up, you can skip this step.

Configure a Google Service Account

A Google service account is a special kind of account that can be used by programs to access Google resources like a BigQuery data warehouse. You will use this service account to connect DataCamp DataLab to your BigQuery warehouse.

To set up a new Google Service Account, please refer to this excellent guidearrow-up-right. At the end of it, you'll have the JSON credentials file that you can use to set up the BigQuery connection in DataLab.

Set up a Google BigQuery connection

When inside a workbook, click View > Databases, then click the + icon and follow the on-screen instructions. Upload the Service Account JSON and hit "Connect".

Create a BigQuery connection

For detailed instructions, see Connect your data to DataLab.

Query the database

You can now query the BigQuery data warehouse with a SQL cell. Select it in the Select source dropdown in the top left corner of a SQL cell, or select the sample BigQuery data warehouse.

Example of a SQL cell using the BigQuery Integration connection. The query result is available as df.

Last updated

Was this helpful?