Appearance
BigQuery
Connect Codatum to BigQuery to run SQL and manage data. For an overview of connections in general, see Connection.
Preparing BigQuery
Prepare a service account and service account key, and grant it the roles (or equivalent permissions) it needs on the target project and dataset.
| Grant on | Role (or equivalent permission) |
|---|---|
| Project | BigQuery Job User (or bigquery.jobs.create) |
| Project | BigQuery Read Session User (or bigquery.readsessions.create / getData / update) |
| Dataset | BigQuery Data Viewer (or bigquery.tables.getData / bigquery.datasets.get / bigquery.tables.get / bigquery.tables.list) |
(Optional) To sync dataset and table information without entering a project ID, grant resourcemanager.projects.get on the target project.
Note the target Project ID for later use.
Configuring Codatum
- Open global nav > Workspace settings > Data management > Connections, then select New connection.
- Select Google BigQuery.
- Enter a Connection name.
- Select an Access level.
- Upload the service account key under JSON key file > File upload (Client Email is filled in automatically from the JSON).
- Enter the Project ID (the JSON's
project_idmight be filled in as a default; you can change it manually). - Run Test connect, then save the connection.
- On the sync targets screen shown after saving, select the datasets to sync (Table metadata sync). You can also skip this step.