Connect to BigQuery
Create a BigQuery connection that uses Bobsled AI workload identity, grant it IAM roles, and set its query defaults.
This page explains how to connect BigQuery to Bobsled AI. BigQuery connections use Bobsled AI workload identity, a dedicated keyless service account, so you store no credentials. For the steps that every provider shares, see Create and manage connections.
Before you begin
- Get the role that creates connections.
- Identify the Google Cloud projects that hold the data, and the project that pays for queries.
- Optional: For temporary data, create a dataset in the Default location, in a project that you list in Data projects.
- Find a Google Cloud administrator who can run the generated commands.
Required permissions
IAM grants control which datasets and tables Bobsled AI can read in the data projects. The following table lists the grants and whether Setup IAM generates them:
For the permissions in each role, see BigQuery IAM roles. Removing a project from the connection doesn't revoke its IAM grants.
Create a BigQuery connection
To create a BigQuery connection, do the following:
- On the Connections page, click Add connection, and then select BigQuery.
- Enter a Display name.
- In Data projects, list the Google Cloud projects that connection browsing can use.
- In Query defaults and model outputs, enter the Billing project, Default dataset, and Default location.
- Optional: In Temporary data (optional), enter both Staging project (optional) and Staging dataset (optional).
- Click Save connection. The dialog shows a permission summary and the generated commands.
- Review the permission summary.
- Ask a Google Cloud administrator to run the generated commands.
- Click Test connection.
To see the commands later, in the connection's row, open More actions, and then select Setup IAM.
Query defaults and temporary data
Query defaults and model outputs separates query execution from data access:
- Query jobs run in the Billing project, which is billed for query usage.
- The Default dataset belongs to the billing project. Default output location shows the resolved project and dataset. Models can override that destination.
- Query jobs and the datasets queried together must use the Default location.
Temporary data (optional) holds temporary and intermediate tables that Bobsled AI creates and cleans up. It doesn't redirect model or pipeline outputs. Enter both staging fields, or leave both blank if you don't need temporary storage. Use a project listed in Data projects, and create the dataset in the Default location before you test.
With temporary data set, Test connection checks the dataset's location and creates, reads, and removes a probe table.
What's next
- To inspect the datasets that the service account can read, see Discover namespaces and assets.
- To add source definitions and models that use the connection, see Blueprints.
- If a test fails, see Troubleshoot a failed test.
