BigQuery Tools Documentation
This document lists all available BigQuery tools and how to connect to BigQuery.
Tools
Tool Name | Description | Parameters |
---|---|---|
bigquery_execute_database_query |
Execute SQL queries against Google Cloud BigQuery | - connection_id (string): The ID of the BigQuery connection to use- sql_query (string): The SQL query to execute |
bigquery_list_database_connections |
List all available BigQuery connections | None |
Configuration
Required Configuration Parameters
Before connecting to BigQuery, you'll need to gather the following information:
- BigQuery Project ID - Your Google Cloud project ID (e.g.,
my-project-123
) - BigQuery Credentials - A JSON service account key file with appropriate BigQuery permissions
- BigQuery Location - The geographic location of your BigQuery datasets (e.g.,
US
,EU
,asia-northeast1
)
Setting Up Service Account Credentials
- Create a Service Account:
- Go to the Google Cloud Console
- Navigate to "IAM & Admin" > "Service Accounts"
- Click "Create Service Account"
-
Give it a name and description
-
Assign BigQuery Permissions:
-
Add the following roles to your service account:
BigQuery Data Viewer
(for read-only access)BigQuery Job User
(for running queries)BigQuery Data Editor
(for write access, if needed)
-
Generate JSON Key:
- Click on your service account
- Go to the "Keys" tab
- Click "Add Key" > "Create new key"
- Choose "JSON" format
-
Download the JSON file
-
Configure in DataMates:
- Copy the contents of the downloaded JSON file
- Paste it into the "BigQuery Credentials" field in your DataMates configuration