Skip to content
Proud to collaborate with Microsoft for Startups

gcp.bigquery.query.run ​

Run a BigQuery Standard SQL query and return result rows.

Overview ​

PropertyValue
Workflow typeLinear
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—GCP CloudConnection UUID.
project_idstringNo—Query/billing project; defaults to the connection's project.
querystringYes—Standard SQL query to execute.
query_parametersjsonNo—BigQuery queryParameters list (named or positional).
parameter_modestringNo—NAMED or POSITIONAL.
locationstringNo—BigQuery location, e.g. US or EU.
default_datasetjsonNo—Default dataset {datasetId, projectId} for unqualified table names.
max_resultsintegerNo—Maximum rows to return in the first page.
use_legacy_sqlbooleanNo—Use legacy SQL; defaults to false (Standard SQL).
timeout_msintegerNo—Per-attempt server-side query timeout in ms.
dry_runbooleanNo—Validate and estimate bytes without running.
poll_interval_secondsintegerNo—Poll interval when the job is not immediately complete.
timeout_secondsintegerNo—Overall wait budget for job completion.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Echoed connection UUID.
project_idstringNo—Effective project id.
querystringNo—Standard SQL query to execute.
query_parametersjsonNo—BigQuery queryParameters list (named or positional).
parameter_modestringNo—NAMED or POSITIONAL.
locationstringNo—BigQuery location, e.g. US or EU.
default_datasetjsonNo—Default dataset {datasetId, projectId} for unqualified table names.
max_resultsintegerNo—Maximum rows to return in the first page.
use_legacy_sqlbooleanNo—Use legacy SQL; defaults to false (Standard SQL).
timeout_msintegerNo—Per-attempt server-side query timeout in ms.
dry_runbooleanNo—Validate and estimate bytes without running.
poll_interval_secondsintegerNo—Poll interval when the job is not immediately complete.
timeout_secondsintegerNo—Overall wait budget for job completion.
rowsjsonNo—Result rows as a list of {column: value} objects.
row_countintegerNo—Rows returned in this page.
total_rowsintegerNo—Total rows in the result set.
schemajsonNo—Result column schema.
job_idstringNo—BigQuery job id.
job_completebooleanNo—Whether the job finished.
cache_hitbooleanNo—Whether the result came from cache.
total_bytes_processedstringNo—Bytes scanned by the query.
next_page_tokenstringNo—Page token when more rows remain.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Engine failed layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—preflight—
preflightingNoNo—execute—
queryingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingpreflightpreflighting—
preflightingexecutequerying—
queryingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "gcp.bigquery.query.run",
  "initial_data": {
    "connection_uuid": "value",
    "query": "value"
  }
}