Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Google BigQuery

connector.google_bigquery · data, database

Run SQL queries, stream rows into tables, read table data and inspect datasets, tables and jobs.

Vendor API documentation: https://cloud.google.com/bigquery/docs/reference/rest

Authentication

MethodCredential kindAuth kindFieldsTest request
Google account (OAuth2)google_bigquery/oauth2oauth2_auth_codeclient_id, client_secret (secret)yes
Google service accountgoogle_bigquery/service_accountjwt_service_accountclient_email, private_key (secret), subjectyes

Actions

Node type connector.google_bigquery. Choose a resource and an operation; each operation has its own parameters.

Query

OperationIDEffectPaginatedCassette tests
Execute a queryquery.executewritesyes5
Get query resultsquery.get_resultsreadsyes1

Execute a query

Operation query.execute. Runs a SQL query and returns one item per result row (column name to value; values are returned as BigQuery encodes them, numbers and timestamps as strings). Statements without a result set (DML, DDL) and dry runs return the query response instead.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
sqlcodeyesSQL query.
use_legacy_sqlbooleanfalseUse legacy SQL.
default_datasetresource_locatorDataset assumed for unqualified table names. Depends on project. Values from lookup datasets.
locationstringLocation of the referenced datasets when it is not US or EU multi-region.
query_parametersjsonArray of BigQuery QueryParameter objects for @name or ? placeholders.
parameter_modeoptions"NAMED"One of NAMED, POSITIONAL.
maximum_bytes_billedstringFail the query instead of billing more than this many bytes.
use_query_cachebooleantrue
dry_runbooleanfalseValidate the query and estimate bytes processed without running it.
labelsjsonObject of job labels.
timeout_msnumber60000How long each request waits for the query to finish.
return_allbooleanfalse
limitnumber50return_all = false
output_modeoptions"rows"One of rows, raw.

Get query results

Operation query.get_results. Reads the result rows of an earlier query job.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
job_idstringyesJob ID.
locationstringLocation of the job when it is not US or EU multi-region.
return_allbooleanfalse
limitnumber50return_all = false

Job

OperationIDEffectPaginatedCassette tests
Get a jobjob.getreads1
List jobsjob.listreadsyes1
Cancel a jobjob.cancelwrites1

Get a job

Operation job.get.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
job_idstringyesJob ID.
locationstringLocation of the job when it is not US or EU multi-region.

List jobs

Operation job.list.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
state_filtermulti_optionsOne of done, pending, running.
all_usersbooleanfalse
min_creation_timestringMilliseconds since the epoch.
max_creation_timestringMilliseconds since the epoch.
projectionoptions"minimal"One of minimal, full.
return_allbooleanfalse
limitnumber50return_all = false

Cancel a job

Operation job.cancel.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
job_idstringyesJob ID.
locationstringLocation of the job when it is not US or EU multi-region.

Table

OperationIDEffectPaginatedCassette tests
Insert rows (all input items)table.insert_rowswrites2
Insert a row per itemtable.insert_rowwrites3
List table rowstable.list_rowsreadsyes2
Get a tabletable.getreads2
List tablestable.listreadsyes1

Insert rows (all input items)

Operation table.insert_rows. Streams every input item as one row (its JSON fields are the columns), in batches of up to 500 rows per request. Outputs one result per batch with any per-row insert errors.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
datasetresource_locatoryesDepends on project. Values from lookup datasets.
tableresource_locatoryesDepends on project, dataset. Values from lookup tables.
batch_sizenumber500Rows per request (Google recommends at most 500).
insert_id_fieldstringDeduplication ID field. Input field whose value is sent as insertId for best-effort deduplication.
skip_invalid_rowsbooleanfalseInsert the valid rows even when some rows are invalid.
ignore_unknown_valuesbooleanfalseDrop fields that are not in the table schema instead of failing.
template_suffixstringInsert into the table named <table><suffix>, created from the table’s schema.
trace_idstring

Insert a row per item

Operation table.insert_row. Streams one row per input item, built from selected input fields, a list of column/value pairs, or a JSON object.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
datasetresource_locatoryesDepends on project. Values from lookup datasets.
tableresource_locatoryesDepends on project, dataset. Values from lookup tables.
data_modeoptions"auto"One of auto, define, json.
columnsstringdata_mode = autoComma separated input fields to send. Empty sends all fields.
valuesfixed_collectiondata_mode = defineColumn values.
values.fieldIdstringColumn.
values.fieldValuestringValue.
rowjsondata_mode = json
insert_idstringDeduplication ID.
skip_invalid_rowsbooleanfalseInsert the valid rows even when some rows are invalid.
ignore_unknown_valuesbooleanfalseDrop fields that are not in the table schema instead of failing.
template_suffixstringInsert into the table named <table><suffix>, created from the table’s schema.
trace_idstring

List table rows

Operation table.list_rows. Reads rows straight from a table (no query cost) as column name to value items.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
datasetresource_locatoryesDepends on project. Values from lookup datasets.
tableresource_locatoryesDepends on project, dataset. Values from lookup tables.
selected_fieldsstringComma separated columns to return.
start_indexnumberZero-based row to start at.
return_allbooleanfalse
limitnumber50return_all = false

Get a table

Operation table.get.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
datasetresource_locatoryesDepends on project. Values from lookup datasets.
tableresource_locatoryesDepends on project, dataset. Values from lookup tables.

List tables

Operation table.list.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
datasetresource_locatoryesDepends on project. Values from lookup datasets.
return_allbooleanfalse
limitnumber50return_all = false

Dataset

OperationIDEffectPaginatedCassette tests
Get a datasetdataset.getreads1
List datasetsdataset.listreadsyes1

Get a dataset

Operation dataset.get.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
datasetresource_locatoryesDepends on project. Values from lookup datasets.

List datasets

Operation dataset.list.

NameTypeDefaultRequiredShown whenDescription
projectresource_locatoryesValues from lookup projects.
allbooleanfalseInclude hidden datasets.
filterstringLabel filter.
return_allbooleanfalse
limitnumber50return_all = false

Lookups

Lookups fill dropdowns and resource pickers in the editor from the vendor API.

LookupDepends onSearchDescription
projectsclient-side{{ item.projectReference.projectId }}
datasetsprojectclient-side{{ item.location }}
tablesproject, datasetclient-side{{ item.type }}

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.googleBigQuery>=1 <2unverified
n8n-nodes-base.googleBigQuery>=2 <3unverified

Provenance

Written from the vendor’s documentation: