BigQuery Table Data List
In this article
Overview
You can use this Snap to read and retrieve data from a Google BigQuery table.
Snap Type
The Google BigQuery Table Data List Snap is a Read-type Snap that reads table data from the BigQuery dataset and lists the data in the output.
Prerequisites
A valid Google BigQuery account with the required permissions.
Limitations and Known Issues
None.
Support for Ultra Pipelines
Works in Ultra Pipelines.Â
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| The Project ID and the Document ID. |
Output | Document |
|
| The list of Table IDs along with their Project IDs, Dataset IDs, and Table type. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter when running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. |
Snap Settings
Asterisk ( * ): Indicates a mandatory field.
Suggestion icon (): Indicates a list that is dynamically populated based on the configuration.
Expression icon ( ): Indicates the value is an expression (if enabled) or a static value (if disabled). Learn more about Using Expressions in SnapLogic.
Add icon ( ): Indicates that you can add fields in the field set.
Remove icon ( ): Indicates that you can remove fields from the field set.
Upload icon ( ): Indicates that you can upload files.
Field Name | Field Type | Field Dependency | Description |
---|---|---|---|
Label* Â Default Value:Â BigQuery Table Data List | String/Expression | None. | Enter a unique name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline. Â |
Project ID Default Value:Â N/A | String/Expression/Suggestion | None. | Specify the project ID in which the dataset resides. |
Dataset ID Default Value:Â N/A | String/Expression/Suggestion | None. | Specify the dataset ID of the destination. |
Table ID Default Value:Â N/A | String/Expression/Suggestion | None. | Specify the table ID of the table you are creating. |
Snap Execution Default Value:Â Validate & Execute | Dropdown list | None. | Select one of the following three modes in which the Snap executes:
|
Examples
Reading a BigQuery Dataset and Listing the Table Data
This example demonstrates how to read table data from a BigQuery dataset and list the data in the output.
Configure the Snap with the Project ID, Dataset ID, and Table ID of the dataset from which the table data is to be listed.
Â
On validation, the Snap lists the table data in the output.
Reading a BigQuery Dataset and Listing the Table Data After Filtering the Dataset
This example pipeline demonstrates how to read tables from a BigQuery dataset and list the data from a specific table in the output.
Â
First, configure the BigQuery Table List Snap with the Project ID and Dataset ID of the dataset from which the table data is to be listed.
On validation, the Snap lists the tables in the dataset.
Â
Next, configure the Filter Snap with an expression that filters the data to limit it to just the Inventory table: $table_id=="Inventory"
Â
On validation, the Snap lists information about the filtered data in the output.
Â
Configure the Table Data List Snap with the Project ID, Dataset ID, and Table ID of the dataset from which the table data is to be listed.
On validation, the Snap lists the table data in the output.
Downloads
Download and import the pipeline into SnapLogic.
Configure Snap accounts, as applicable.
Provide pipeline parameters, as applicable.
Â