In this article
You can use this Snap to delete BigQuery tables.
BigQuery Table Delete Snap is a Write-type Snap.
A valid Google BigQuery Account with the required permissions.
Works in Ultra Pipelines.
None.
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| The Project ID, Dataset ID, and Table ID. |
Output | Document |
|
| The status of the table deletion and the details of the deleted table: Project ID, Dataset ID, Table ID, 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 while 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. |
|
Field Name | Field Type | Description |
---|---|---|
Label* Default Value: BigQuery Table Delete | String | Specify a unique name for the Snap. |
Project ID* Default Value: N/A | String/Expression/Suggestion | Specify the project ID in which the dataset to be deleted resides. |
Dataset ID* Default Value: N/A | String/Expression/Suggestion | Specify the ID of the dataset that you want to delete. |
Table ID* Default Value: N/A | String/Expression/Suggestion | Specify the ID of the target table that you want to delete. |
Snap Execution Default Value: Execute only | Dropdown list | Select one of the following three modes in which the Snap executes:
|
This example Pipeline demonstrates how to delete a dummy table from a dataset.
First, configure the BigQuery Execute Snap with the CREATE table query as highlighted in the image that executes the query.
On validating, the Snap processes the query to create a table. You can view the following output in the Snap’s preview.
Next, configure the BigQuery Delete Snap to delete the Dummy_del table from the babynames dataset that belongs to case16370 Project ID.
On validation, the Snap deletes the table and displays the status of the deletion and the details of the deleted table.
|