BigQuery stores and queries datasets with SQL. Use this integration to run queries, inspect datasets, tables, and schemas, and insert rows. Connect the Google credentials required by the selected operation.
Sim requests these scopes when someone connects a Google BigQuery account. For a self-hosted deployment, register your own app with the provider using the settings below. See Integrations and OAuth for setup.
Setting Value Redirect URI <NEXT_PUBLIC_APP_URL>/api/auth/oauth2/callback/google-bigqueryEnvironment variables GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET
Scope Description https://www.googleapis.com/auth/userinfo.emailView email address https://www.googleapis.com/auth/userinfo.profileView basic profile info https://www.googleapis.com/auth/bigqueryView and manage data in Google BigQuery
Connect to Google BigQuery to run SQL queries, list datasets and tables, get table metadata, and insert rows.
Run a SQL query against Google BigQuery and return the results
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID querystring Yes SQL query to execute useLegacySqlboolean No Whether to use legacy SQL syntax (default: false) maxResultsnumber No Maximum number of rows to return defaultDatasetIdstring No Default dataset for unqualified table names locationstring No Processing location (e.g., "US", "EU")
Parameter Type Description columnsarray Array of column names from the query result rowsarray Array of row objects keyed by column name totalRowsstring Total number of rows in the complete result set jobCompleteboolean Whether the query completed within the timeout totalBytesProcessedstring Total bytes processed by the query cacheHitboolean Whether the query result was served from cache jobReferenceobject Job reference (useful when jobComplete is false) ↳ projectId string Project ID containing the job ↳ jobId string Unique job identifier ↳ location string Geographic location of the job pageTokenstring Token for fetching additional result pages
Fetch results for a previously submitted BigQuery job, or the next page of a Run Query result
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID jobIdstring Yes ID of the BigQuery job to fetch results for pageTokenstring No Token for pagination maxResultsnumber No Maximum number of rows to return timeoutMsnumber No How long to wait for the job to complete, in milliseconds locationstring No Processing location of the job (e.g., "US", "EU") startIndexstring No Zero-based index of the starting row
Parameter Type Description columnsarray Array of column names from the query result rowsarray Array of row objects keyed by column name totalRowsstring Total number of rows in the complete result set jobCompleteboolean Whether the job has completed totalBytesProcessedstring Total bytes processed by the query cacheHitboolean Whether the query result was served from cache jobReferenceobject Job reference (useful when jobComplete is false) ↳ projectId string Project ID containing the job ↳ jobId string Unique job identifier ↳ location string Geographic location of the job pageTokenstring Token for fetching additional result pages
List all datasets in a Google BigQuery project
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID maxResultsnumber No Maximum number of datasets to return pageTokenstring No Token for pagination
Parameter Type Description datasetsarray Array of dataset objects ↳ datasetId string Unique dataset identifier ↳ projectId string Project ID containing this dataset ↳ friendlyName string Descriptive name for the dataset ↳ location string Geographic location where the data resides nextPageTokenstring Token for fetching next page of results
Create a new dataset in a Google BigQuery project
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes ID for the new BigQuery dataset locationstring No Geographic location for the dataset (e.g., "US", "EU") friendlyNamestring No Human-readable name for the dataset descriptionstring No Description of the dataset
Parameter Type Description datasetIdstring Unique dataset identifier projectIdstring Project ID containing this dataset friendlyNamestring Descriptive name for the dataset descriptionstring Dataset description locationstring Geographic location where the data resides creationTimestring Dataset creation time (milliseconds since epoch)
Delete a dataset from a Google BigQuery project
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID to delete deleteContentsboolean No Whether to delete tables inside the dataset (default: false)
Parameter Type Description deletedboolean Whether the dataset was deleted
List all tables in a Google BigQuery dataset
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID maxResultsnumber No Maximum number of tables to return pageTokenstring No Token for pagination
Parameter Type Description tablesarray Array of table objects ↳ tableId string Table identifier ↳ datasetId string Dataset ID containing this table ↳ projectId string Project ID containing this table ↳ type string Table type (TABLE, VIEW, EXTERNAL, etc.) ↳ friendlyName string User-friendly name for the table ↳ creationTime string Time when created, in milliseconds since epoch totalItemsnumber Total number of tables in the dataset nextPageTokenstring Token for fetching next page of results
Get metadata and schema for a Google BigQuery table
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID tableIdstring Yes BigQuery table ID
Parameter Type Description tableIdstring Table ID datasetIdstring Dataset ID projectIdstring Project ID typestring Table type (TABLE, VIEW, SNAPSHOT, MATERIALIZED_VIEW, EXTERNAL) descriptionstring Table description numRowsstring Total number of rows numBytesstring Total size in bytes, excluding data in streaming buffer schemaarray Array of column definitions ↳ name string Column name ↳ type string Data type (STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP, RECORD, etc.) ↳ mode string Column mode (NULLABLE, REQUIRED, or REPEATED) ↳ description string Column description creationTimestring Table creation time (milliseconds since epoch) lastModifiedTimestring Last modification time (milliseconds since epoch) locationstring Geographic location where the table resides
Create a new table in a Google BigQuery dataset
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID tableIdstring Yes ID for the new BigQuery table schemastring Yes JSON array of column field definitions, e.g. [{"name":"id","type":"STRING","mode":"REQUIRED"}] descriptionstring No Description of the table friendlyNamestring No Human-readable name for the table
Parameter Type Description tableIdstring Table ID datasetIdstring Dataset ID projectIdstring Project ID typestring Table type (usually TABLE) descriptionstring Table description schemaarray Array of column definitions ↳ name string Column name ↳ type string Data type ↳ mode string Column mode (NULLABLE, REQUIRED, or REPEATED) ↳ description string Column description creationTimestring Table creation time (milliseconds since epoch) locationstring Geographic location where the table resides
Delete a table from a Google BigQuery dataset
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID tableIdstring Yes BigQuery table ID to delete
Parameter Type Description deletedboolean Whether the table was deleted
Preview rows from a Google BigQuery table without running a query. Pair with Get Table to know the column order.
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID tableIdstring Yes BigQuery table ID maxResultsnumber No Maximum number of rows to return pageTokenstring No Token for pagination startIndexstring No Zero-based index of the starting row selectedFieldsstring No Comma-separated list of column names to return
Parameter Type Description rowsarray Array of rows, each a raw array of column values in schema order totalRowsstring Total number of rows in the table pageTokenstring Token for fetching the next page of results
Insert rows into a Google BigQuery table using streaming insert
Inputs and outputsParameter Type Required Description projectIdstring Yes Google Cloud project ID datasetIdstring Yes BigQuery dataset ID tableIdstring Yes BigQuery table ID rowsstring Yes JSON array of row objects to insert skipInvalidRowsboolean No Whether to insert valid rows even if some are invalid ignoreUnknownValuesboolean No Whether to ignore columns not in the table schema
Parameter Type Description insertedRowsnumber Number of rows successfully inserted errorsarray Array of per-row insertion errors (empty if all succeeded) ↳ index number Zero-based index of the row that failed ↳ errors array Error details for this row ↳ reason string Short error code summarizing the error ↳ location string Where the error occurred ↳ message string Human-readable error description