Google BigQuery connection
To access your data in Google BigQuery, create a connection asset for it.
Google BigQuery is a fully managed, serverless data warehouse that enables scalable analysis over petabytes of data.
Create a connection to Google BigQuery
To create the connection asset, you need one of the following combinations for authentication:
- Credentials: The contents of the Google service account key JSON file
- Client ID, Client secret, Access token, and Refresh token
Optional: Project ID
For Credentials, you can use secrets if a vault is configured for the platform and the service supports vaults. For information, see Using secrets from vaults in connections.
The connection to Google BigQuery requires the following BigQuery permissions:
bigquery.job.create
bigquery.tables.get
bigquery.tables.getData
Use one of three ways to gain these permissions:
- Use the predefined BigQuery Cloud IAM role
bigquery.admin
, which includes these permissions; - Use a combination of two roles, one from each column in the following table; or
- Create a custom role. See Creating and managing custom roles.
First role | Second role |
---|---|
bigquery.dataEditor |
bigquery.jobUser |
bigquery.dataOwner |
bigquery.user |
bigquery.dataViewer |
For information about Google BigQuery's permissions and roles, see Predefined roles and permissions.
Choose the method for creating a connection based on where you are in the platform
In a project Click Add to project > Connection. See Adding a connection to a project.
In a catalog
Click Add to catalog > Connection. See Adding a connection asset to a catalog.
In a deployment space
Click Add to space > Connection. See Adding connections to a deployment space.
In the Platform assets catalog
Click New connection. See Adding platform connections.
Next step: Add data assets from the connection
Where you can use this connection
You can use Google BigQuery connections in the following workspaces and tools:
Analytics projects
- Data Refinery (Watson Studio or Watson Knowledge Catalog)
- DataStage (DataStage service)
- Metadata import (Watson Knowledge Catalog) You must create the Google BigQuery connection in a project, and then select it from the existing connections when you create a metadata import. You cannot create the Google BigQuery from within the metadata import.
- SPSS Modeler (SPSS Modeler service)
Catalogs
- Platform assets catalog
- Other catalogs (Watson Knowledge Catalog)
Data Virtualization service You can connect to this data source from Data Virtualization.
Google BigQuery setup
Quickstart using the Cloud Console
Running SQL statements
To ensure that your SQL statements run correctly, refer to the Google BigQuery documentation for the correct syntax.
Learn more
Parent topic: Supported connections