Google BigQuery

Google BigQuery é o data warehouse serverless e totalmente gerenciado do Google Cloud, projetado para analytics de dados em larga escala. O BigQuery permite executar queries SQL rápidas em datasets massivos, sendo ideal para business intelligence, exploração de dados e pipelines de machine learning.

Com a integração do Google BigQuery na Zoen, você pode:

  • Executar queries SQL: Rodar queries nos seus datasets do BigQuery e recuperar resultados para análise ou processamento downstream
  • Listar datasets: Navegar pelos datasets disponíveis em um projeto do Google Cloud
  • Listar e inspecionar tabelas: Enumerar tabelas de um dataset e recuperar informações detalhadas do schema
  • Inserir linhas: Enviar novas linhas para tabelas do BigQuery para ingestão de dados em tempo real

Na Zoen, a integração do Google BigQuery permite que seus agentes consultem datasets, inspecionem schemas e insiram linhas como parte de fluxos automatizados. Isso é ideal para relatórios automatizados, orquestração de pipelines de dados, ingestão em tempo real e decisões orientadas por analytics.

Usage Instructions

Connect to Google BigQuery to run SQL queries, list datasets and tables, get table metadata, and insert rows.

Actions

google_bigquery_query

Run a SQL query against Google BigQuery and return the results

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
querystringYesSQL query to execute
useLegacySqlbooleanNoWhether to use legacy SQL syntax (default: false)
maxResultsnumberNoMaximum number of rows to return
defaultDatasetIdstringNoDefault dataset for unqualified table names
locationstringNoProcessing location (e.g., "US", "EU")

Output

ParameterTypeDescription
columnsarrayArray of column names from the query result
rowsarrayArray of row objects keyed by column name
totalRowsstringTotal number of rows in the complete result set
jobCompletebooleanWhether the query completed within the timeout
totalBytesProcessedstringTotal bytes processed by the query
cacheHitbooleanWhether the query result was served from cache
jobReferenceobjectJob reference (useful when jobComplete is false)
projectIdstringProject ID containing the job
jobIdstringUnique job identifier
locationstringGeographic location of the job
pageTokenstringToken for fetching additional result pages

google_bigquery_get_query_results

Fetch results for a previously submitted BigQuery job, or the next page of a Run Query result

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
jobIdstringYesID of the BigQuery job to fetch results for
pageTokenstringNoToken for pagination
maxResultsnumberNoMaximum number of rows to return
timeoutMsnumberNoHow long to wait for the job to complete, in milliseconds
locationstringNoProcessing location of the job (e.g., "US", "EU")
startIndexstringNoZero-based index of the starting row

Output

ParameterTypeDescription
columnsarrayArray of column names from the query result
rowsarrayArray of row objects keyed by column name
totalRowsstringTotal number of rows in the complete result set
jobCompletebooleanWhether the job has completed
totalBytesProcessedstringTotal bytes processed by the query
cacheHitbooleanWhether the query result was served from cache
jobReferenceobjectJob reference (useful when jobComplete is false)
projectIdstringProject ID containing the job
jobIdstringUnique job identifier
locationstringGeographic location of the job
pageTokenstringToken for fetching additional result pages

google_bigquery_list_datasets

List all datasets in a Google BigQuery project

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
maxResultsnumberNoMaximum number of datasets to return
pageTokenstringNoToken for pagination

Output

ParameterTypeDescription
datasetsarrayArray of dataset objects
datasetIdstringUnique dataset identifier
projectIdstringProject ID containing this dataset
friendlyNamestringDescriptive name for the dataset
locationstringGeographic location where the data resides
nextPageTokenstringToken for fetching next page of results

google_bigquery_create_dataset

Create a new dataset in a Google BigQuery project

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesID for the new BigQuery dataset
locationstringNoGeographic location for the dataset (e.g., "US", "EU")
friendlyNamestringNoHuman-readable name for the dataset
descriptionstringNoDescription of the dataset

Output

ParameterTypeDescription
datasetIdstringUnique dataset identifier
projectIdstringProject ID containing this dataset
friendlyNamestringDescriptive name for the dataset
descriptionstringDataset description
locationstringGeographic location where the data resides
creationTimestringDataset creation time (milliseconds since epoch)

google_bigquery_delete_dataset

Delete a dataset from a Google BigQuery project

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID to delete
deleteContentsbooleanNoWhether to delete tables inside the dataset (default: false)

Output

ParameterTypeDescription
deletedbooleanWhether the dataset was deleted

google_bigquery_list_tables

List all tables in a Google BigQuery dataset

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID
maxResultsnumberNoMaximum number of tables to return
pageTokenstringNoToken for pagination

Output

ParameterTypeDescription
tablesarrayArray of table objects
tableIdstringTable identifier
datasetIdstringDataset ID containing this table
projectIdstringProject ID containing this table
typestringTable type (TABLE, VIEW, EXTERNAL, etc.)
friendlyNamestringUser-friendly name for the table
creationTimestringTime when created, in milliseconds since epoch
totalItemsnumberTotal number of tables in the dataset
nextPageTokenstringToken for fetching next page of results

google_bigquery_get_table

Get metadata and schema for a Google BigQuery table

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID
tableIdstringYesBigQuery table ID

Output

ParameterTypeDescription
tableIdstringTable ID
datasetIdstringDataset ID
projectIdstringProject ID
typestringTable type (TABLE, VIEW, SNAPSHOT, MATERIALIZED_VIEW, EXTERNAL)
descriptionstringTable description
numRowsstringTotal number of rows
numBytesstringTotal size in bytes, excluding data in streaming buffer
schemaarrayArray of column definitions
namestringColumn name
typestringData type (STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP, RECORD, etc.)
modestringColumn mode (NULLABLE, REQUIRED, or REPEATED)
descriptionstringColumn description
creationTimestringTable creation time (milliseconds since epoch)
lastModifiedTimestringLast modification time (milliseconds since epoch)
locationstringGeographic location where the table resides

google_bigquery_create_table

Create a new table in a Google BigQuery dataset

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID
tableIdstringYesID for the new BigQuery table
schemastringYesJSON array of column field definitions, e.g. [{"name":"id","type":"STRING","mode":"REQUIRED"}]
descriptionstringNoDescription of the table
friendlyNamestringNoHuman-readable name for the table

Output

ParameterTypeDescription
tableIdstringTable ID
datasetIdstringDataset ID
projectIdstringProject ID
typestringTable type (usually TABLE)
descriptionstringTable description
schemaarrayArray of column definitions
namestringColumn name
typestringData type
modestringColumn mode (NULLABLE, REQUIRED, or REPEATED)
descriptionstringColumn description
creationTimestringTable creation time (milliseconds since epoch)
locationstringGeographic location where the table resides

google_bigquery_delete_table

Delete a table from a Google BigQuery dataset

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID
tableIdstringYesBigQuery table ID to delete

Output

ParameterTypeDescription
deletedbooleanWhether the table was deleted

google_bigquery_list_table_data

Preview rows from a Google BigQuery table without running a query. Pair with Get Table to know the column order.

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID
tableIdstringYesBigQuery table ID
maxResultsnumberNoMaximum number of rows to return
pageTokenstringNoToken for pagination
startIndexstringNoZero-based index of the starting row
selectedFieldsstringNoComma-separated list of column names to return

Output

ParameterTypeDescription
rowsarrayArray of rows, each a raw array of column values in schema order
totalRowsstringTotal number of rows in the table
pageTokenstringToken for fetching the next page of results

google_bigquery_insert_rows

Insert rows into a Google BigQuery table using streaming insert

Input

ParameterTypeRequiredDescription
projectIdstringYesGoogle Cloud project ID
datasetIdstringYesBigQuery dataset ID
tableIdstringYesBigQuery table ID
rowsstringYesJSON array of row objects to insert
skipInvalidRowsbooleanNoWhether to insert valid rows even if some are invalid
ignoreUnknownValuesbooleanNoWhether to ignore columns not in the table schema

Output

ParameterTypeDescription
insertedRowsnumberNumber of rows successfully inserted
errorsarrayArray of per-row insertion errors (empty if all succeeded)
indexnumberZero-based index of the row that failed
errorsarrayError details for this row
reasonstringShort error code summarizing the error
locationstringWhere the error occurred
messagestringHuman-readable error description

On this page