More about a Google BigQuery destination¶
Roles¶
| Role | Why |
|---|---|
BigQuery Job User (roles/bigquery.jobUser) |
Runs the query jobs: the Replicator Service's CREATE TABLE and ALTER TABLE, and the Apply extension's CREATE TABLE, MERGE and TRUNCATE TABLE. |
BigQuery Data Editor (roles/bigquery.dataEditor) |
Creates, changes and fills the destination and staging tables, including writing rows with the Storage Write API. |
Test the destination¶
Verify tests the ODBC connection with the service account. It doesn't test the Apply extension's parameters, which are used only when a group or subscription runs (see the key file errors in Check the destination).
Apply extension parameters¶
The parameters you can add to a group's Parameters:
| Parameter | Default | What it does |
|---|---|---|
className |
com.starquest.sqdr.gbq.apply.BigQueryApplyProcessor |
The Apply extension. Required. |
keyFilePath |
from the connection string | The JSON key file on the Stelo VM. Required. |
project |
from the connection string | The project to replicate to. Required. |
mergeSchema |
the destination dataset | The dataset for the staging tables, to keep them apart from the destination tables. The service account needs the same roles on it. |
maxBlobLength, maxClobLength |
9000000 |
The longest binary (bytes) and character (characters) LOB value sent; longer values are cut. BigQuery limits a request's size (about 10 MB), so lower them when a table has several large LOB columns, for example below 2 MB each for five of them. |
parallelApply |
false |
true applies the changes of several tables at the same time, as many as the group's Maximum Subscriptions. The Capture Agent property of the same name sets the default for all groups. |
expirationHours |
12 |
How long a staging table is kept before BigQuery deletes it. |