Skip to main content

BigQuery setup Preview

You can configure the BigQuery adapter by running dbt init in your CLI or manually providing the profiles.yml file with the fields configured for your authentication type.

The BigQuery adapter for Fusion supports the following authentication methods:

  • Service account (JSON file)
  • gcloud OAuth

BigQuery permssions

dbt user accounts need the following permissions to read from and create tables and views in a BigQuery project:

  • BigQuery Data Editor
  • BigQuery User
  • BigQuery Read Session User (New in Fusion. For Storage Read API access)

For BigQuery DataFrames, users need these additional permissions:

  • BigQuery Job User
  • BigQuery Read Session User
  • Notebook Runtime User
  • Code Creator
  • colabEnterpriseUser

Configure Fusion

Executing dbt init in your CLI will prompt for the following fields:

  • Project ID: The GCP BigQuery project ID
  • Dataset: The schema name
  • Location: The location for your GCP environment (for example, us-east1)

Alternatively, you can manually create the profiles.yml file and configure the fields. See examples in authentication section for formatting. If there is an existing profiles.yml file, you have the option to retain the existing fields or overwrite them.

Next, select your authentication method. Follow the on-screen prompts to provide the required information.

Supported authentication types

Selecting the Service account (JSON file) authentication type will prompt you for the path to your JSON file. You can also manually define the path in your profiles.yml file.

Example service account JSON file configuration

profiles.yml
default:
target: dev
outputs:
dev:
type: bigquery
threads: 16
database: ABC123
schema: JAFFLE_SHOP
method: service-account
keyfile: /Users/mshaver/Downloads/CustomRoleDefinition.json
location: us-east1
dataproc_batch: null

More information

Find BigQuery-specific configuration information in the BigQuery adapter reference guide.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

0