BigQuery
Run BigQuery queries as steps in a Tessel workflow and get typed rows back. Use them to decide what happens next, then write results into a dataset you choose.
Warehouse
Category
Batch
Sync mode
p95 3.2 s
Latency
6 min
Setup time
What it can do
- Query returned new rowsPoll
- Table updatedPoll
- Scheduled query finishedPoll
- Run a queryQuery
- Insert rowsWrite
- Load a CSV or Parquet fileBatch
Overview
The BigQuery connector runs standard SQL as jobs in a project you choose and returns typed rows to the workflow. Queries can start runs on a schedule, react when a table changes or run mid-workflow as a lookup, and every job shows up in the trace of its run.
Teams use it to update HubSpot lifecycle stages from product usage, to match Stripe charges against finance tables and to drop weekly exports into Google Drive.
Supported features
Standard SQL in any BigQuery location, including the US and EU multi-regions
On-demand and capacity pricing, with a bytes cap on every query
Workload identity federation, or a service account key
How queries run
Every query Tessel runs is a normal BigQuery job with a source:tessel label, so you can find it in INFORMATION_SCHEMA.JOBS. Results are paged and checked against the expected columns. Inserts use the Storage Write API with stream offsets, so a retry never writes a row twice.
Cost controls
Each query step has a bytes billed cap, 10 GB by default. Tessel runs a dry run when you save a step and shows the estimated bytes, and a query that would go over the cap fails before it costs anything.
Permissions needed
Create a service account for Tessel and grant roles at the narrowest level that works. It needs to run jobs in one project, read the datasets workflows query and write to one dataset only.
roles/bigquery.jobUseron the project that runs queriesroles/bigquery.dataVieweron the datasets workflows readroles/bigquery.dataEditoronly on the dataset Tessel writes to
Five steps. About six minutes.
Most of the time goes into granting roles. Tessel runs a dry run against each dataset before you finish.
- Create a service account for TesselGoogle Cloud1 min
- Grant job user and data viewer rolesGoogle Cloud2 min
- Set up workload identity federation or add a keyGoogle Cloud2 min
- Pick the project and datasetsTessel1 min
- Run a test query and check the resultVerify3.2 s
Query results that start the work.
Connect BigQuery on the free plan. Up to three builders and 10,000 runs a month, no card required.