BigQuery (transferwise
variant)
Table of Contents
- Alternative variants
- Standalone usage
- Usage with Meltano
- Capabilities
- Settings
-
Dataset Id (
dataset_id) -
Project Id (
project_id) -
Location (
location) -
Batch Size Rows (
batch_size_rows) -
Flush All Streams (
flush_all_streams) -
Parallelism (
parallelism) -
Max Parallelism (
max_parallelism) -
Default Target Schema (
default_target_schema) -
Default Target Schema Select Permission (
default_target_schema_select_permission) -
Schema Mapping (
schema_mapping) -
Add Metadata Columns (
add_metadata_columns) -
Hard Delete (
hard_delete) -
Data Flattening Max Level (
data_flattening_max_level) -
Primary Key Required (
primary_key_required) -
Validate Records (
validate_records) -
Temp Schema (
temp_schema)
-
Dataset Id (
- Looking for help?
The bigquery Singer target sends data into BigQuery after it was pulled from a source using a Singer tap.
Alternative variants #
Multiple
variants
of bigquery are available.
This document describes the transferwise variant.
Alternative variants are:
-
adswerve(default)
Standalone usage #
Install the package using pip:
pip install pipelinewise-target-bigquery
For additional instructions, refer to the README in the repository.
Usage with Meltano #
Meltano helps you manage your configuration, incremental replication, and scheduled pipelines.
View the Meltano-specific bigquery instructions to learn more.
Capabilities #
Settings #
bigquery requires the
configuration
of the following settings:
These and other supported settings are documented below. To quickly find the setting you're looking for, use the Table of Contents at the top of the page.
Dataset Id (dataset_id)
#
BigQuery dataset
Project Id (project_id)
#
BigQuery project
Location (location)
#
- Default:
US
Region where BigQuery stores your dataset
Batch Size Rows (batch_size_rows)
#
- Default:
100000
Maximum number of rows in each batch. At the end of each batch, the rows in the batch are loaded into BigQuery.
Flush All Streams (flush_all_streams)
#
- Default:
false
Flush and load every stream into BigQuery when one batch is full. Warning - This may trigger transfer of data with low number of records, and may cause performance problems.
Parallelism (parallelism)
#
- Default:
0
The number of threads used to flush tables. 0 will create a thread for each stream, up to parallelism_max. -1 will create a thread for each CPU core. Any other positive number will create that number of threads, up to parallelism_max.
Max Parallelism (max_parallelism)
#
- Default:
16
Max number of parallel threads to use when flushing tables.
Default Target Schema (default_target_schema)
#
Name of the schema where the tables will be created. If schema_mapping is not defined then every stream sent by the tap is loaded into this schema.
Default Target Schema Select Permission (default_target_schema_select_permission)
#
Grant USAGE privilege on newly created schemas and grant SELECT privilege on newly created
Schema Mapping (schema_mapping)
#
(Experimental) Useful if you want to load multiple streams from one tap to multiple BigQuery schemas. If the tap sends the stream_id in
Add Metadata Columns (add_metadata_columns)
#
- Default:
false
Metadata columns add extra row level information about data ingestions, (i.e. when was the row read in source, when was inserted or deleted in bigquery etc.) Metadata columns are creating automatically by adding extra columns to the tables with a column prefix sdc. The column names are following the stitch naming conventions documented at https://www.stitchdata.com/docs/data-structure/integration-schemas#sdc-columns. Enabling metadata columns will flag the deleted rows by setting the _sdc_deleted_at metadata column. Without the add_metadata_columns option the deleted rows from singer taps will not be recognisable in BigQuery.
Hard Delete (hard_delete)
#
- Default:
false
When hard_delete option is true then DELETE SQL commands will be performed in BigQuery to delete rows in tables. It’s achieved by continuously checking the _sdc_deleted_at metadata column sent by the singer tap. Due to deleting rows requires metadata columns, hard_delete option automatically enables the add_metadata_columns option as well.
Data Flattening Max Level (data_flattening_max_level)
#
- Default:
0
Object type RECORD items from taps can be loaded into VARIANT columns as JSON (default) or we can flatten the schema by creating columns automatically. When value is 0 (default) then flattening functionality is turned off.
Primary Key Required (primary_key_required)
#
- Default:
true
Log based and Incremental replications on tables with no Primary Key cause duplicates when merging UPDATE events. When set to true, stop loading data if no Primary Key is defined.
Validate Records (validate_records)
#
- Default:
false
Validate every single record message to the corresponding JSON schema. This option is disabled by default and invalid RECORD messages will fail only at load time by BigQuery. Enabling this option will detect invalid records earlier but could cause performance degradation.
Temp Schema (temp_schema)
#
Name of the schema where the temporary tables will be created. Will default to the same schema as the target tables.
Looking for help? #
If you're having trouble getting the
bigquery target to work, look for an
existing issue in its repository, file a new issue,
or
join the Meltano Slack community
and ask for help in the #plugins-general channel.
Found an issue on this page? #
This page is generated from a YAML file that you can contribute changes to. Edit it on GitHub!