BigQuery
Kubemq gcp-bigquery target connector allows services using kubemq server to access google bigquery server.
Prerequisites
The following are required to run the gcp-bigquery target connector:
kubemq cluster
gcp-bigquery set up
kubemq-source deployment
Configuration
bigquery target connector configuration properties:
Properties Key
Required
Description
Example
project_id
yes
gcp bigquery project_id
"/myproject"
credentials
yes
gcp credentials files
"<google json credentials"
Example:
Usage
Query Request
query request.
Query metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"query"
query
yes
the query body
"select * from table"
Example:
Create Table Request
create a new table under data set
This method required a body of rows of string [bigquery.TableMetadata]
Example how to create the struct:
Create table metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"create_table"
dataset_id
yes
dataset to assign the table to
"your data set ID"
table_name
yes
table name
"unique name"
Example:
Delete Table Request
delete a new table under data set
Delete table metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"create_table"
dataset_id
yes
dataset to assign the table to
"your data set ID"
table_name
yes
table name
"unique name"
Example:
Create Data Set Request
Create a Data Set
Create Data Set metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"create_data_set"
dataset_id
yes
dataset to assign the table to
"your data set ID"
location
yes
dataset location to set
Example:
Delete Data Set Request
delete a Data Set
Delete Data Set metadata setting:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"delete_data_set"
dataset_id
yes
dataset to assign the table to
"your data set ID"
Example:
Get DataSets Request
get data sets.
Get DataSets setting:
Metadata Key
Required
Description
Possible values
method
yes
type of method
"get_data_sets"
Example:
Get Table Info
get basic information on a table by name
Get table Info
Metadata Key
Required
Description
Possible values
method
yes
type of method
"get_table_info"
dataset_id
yes
dataset to assign the table to
"your data set ID"
table_name
yes
table name
"unique table name"
Example:
Insert To Table
insert rows to table
Insert To Table this method required a body of rows as json array
Metadata Key
Required
Description
Possible values
method
yes
type of method
"insert"
dataset_id
yes
dataset to assign the table to
"your data set ID"
table_name
yes
table name
"unique table name"
Example:
Last updated