In this article
You can use this Snap to delete BigQuery Datasets.
BigQuery Dataset Delete Snap is a Write Snap that writes deleted status for deleted BigQuery Datasets.
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 |
|
| This Snap has at most one document input view. The Project ID and the Document ID. |
Output | Document |
| Any document processing Snap can be used. | This Snap has exactly one document output view. |
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 Dataset Delete | String | Specify a unique name for the Snap. Modify this to be more specific, especially if you have more than one Snap of the same type in your Pipeline. |
Project ID Default Value: N/A | String/Expression | Specify the Project ID in which the dataset to be deleted resides. |
Dataset ID Default Value: N/A | String/Expression | Specify the ID of the dataset that you want to delete. |
Detailed Information Default value: Deselected | Checkbox | Select this checkbox to enable the Snap to access additional fields for displaying them in the output. The additinal fields include: Dataset Location, Dataset Description, Dataset Creation Time, Dataset Last Modified Time, and Dataset Default Table Expiration. |
Snap Execution Default Value: Execute only | Dropdown list | Select one of the following three modes in which the Snap executes. Options include:
|
This example Pipeline demonstrates how to delete a dataset from BigQuery.
First, configure the BigQuery Dataset Create Snap as highlighted in the image.
On validation, the BigQuery Dataset Create Snap creates a babynames_cd dataset in the case16370 Project ID.
Next, configure the BigQuery Dataset Delete Snap to delete the babynames_cd dataset that belongs to the case16370 Project ID.
On validation, the Snap deletes the content and displays the details of the deleted dataset and project.
Error | Resolution |
---|---|
No Dataset found with the specified id. | Either the dataset has already been deleted or specify another dataset to delete. |
|