Google BigQuery Connector
Pull BigQuery jobs.query results with JWT auth and cursor paging into clean tables.
Exchanges Google Cloud service-account JWT assertions for OAuth2 tokens and runs jobs.query. Polls jobComplete, pages with pageToken cursors, and flattens nested /f/*/v cells into typed tables.
What Google BigQuery Connector does
Google BigQuery Connector lets analysts run standard-SQL jobs.query extracts without putting raw Google Cloud service-account keys into recipes or chat. Only the Google Cloud project and client_email stay on the Workspace Connection, while each source holds its query.
The connector manages the full OAuth2 JWT exchange, async jobComplete polling, pageToken pagination, and nested cell decoding. Clean results move through DuckDB SQL transforms and quality gates before serving as Parquet, CSV, REST API, or MCP.
Input & output example
Calls BigQuery jobs.query, polls jobComplete, and decodes nested /f/*/v cells.
BigQuery Standard SQL query
SELECT region, event_date, active_merchants FROM `prod-analytics.mart.daily_merchants` WHERE event_date >= DATE_SUB(CURRENT_DATE(), INTERVAL 30 DAY)
Normalized table output
| region | event_date | active_merchants |
|---|---|---|
| US-WEST | 2026-10-14 | 18420 |
| EU-CENTRAL | 2026-10-14 | 12910 |
How it works
- 1
Enroll Google Cloud service-account JWT connection
Store your Google Cloud project ID, service-account client_email, and encrypted private key once in Workspace Connections.
- 2
Submit jobs.query and follow pageToken cursors
Sign a JWT at oauth2.googleapis.com/token, call /bigquery/v2/projects/{project}/queries, poll jobComplete, and page results.
- 3
Flatten cells and publish live tables
Decode /f/N/v cells, cast types in DuckDB SQL, and serve via Parquet download, REST API, and MCP.
Try with an agent
Pre-loads BigQuery SQL in chatSync a BigQuery analytics mart table
Use my saved Google BigQuery connection to extract daily regional metrics via jobs.query, cast event_date and numeric fields in DuckDB SQL, and schedule daily updates.
Combine BigQuery telemetry with public benchmarks
Pull weekly usage aggregates from my BigQuery connection and join with public census regions in DuckDB SQL.
Common use cases
- Publishing curated BigQuery warehouse outputs via REST API and MCP
- Combining Google Cloud analytics with external filings or weather feeds
- Automating daily BigQuery extracts with strict data quality promotion gates
- Eliminating raw Google Cloud service-account JSON handling in scripts or chat
Details
- Category
- Connectors
- Identifier
- bigquery-sql
- Inputs
- BigQuery jobs.query · Service-account JWT · pageToken cursors
- Outputs
- Typed SQL & Parquet tables · Public or workspace views
- Dataset delivery
- Parquet · CSV · JSON · SQL · REST API · MCP
Frequently asked questions
How does BigQuery Connector handle BigQuery's nested row format?
BigQuery wraps each row as {"f": [{"v": value}, ...]}; the connector preset maps column pointers (/f/0/v, /f/1/v) cleanly into flat DuckDB columns.
Does it support multi-page BigQuery result sets?
Yes. After jobComplete is true, cursor pagination follows pageToken until all result pages up to the configured limit are collected.
Are Google Cloud service-account JSON private keys ever stored in recipes?
No. Private keys stay encrypted in Workspace Secrets and only client_email and project are bound on the connection.