Skip to end of banner
Go to start of banner

Catalog Delete

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 31 Next »

Overview

The Catalog Delete Snap enables you to delete the partitions within a specific Table Asset in the SnapLogic Data Catalog.

Input and Output

  • Expected input: A document containing the metadata to be deleted from the Data Catalog.
  • Expected output: A document stream containing status messages on the result of the delete operation.
  • Expected upstream SnapsRequired. A Snap that offers document streaming data. Examples: Parquet Writer and Mapper.
  • Expected downstream Snaps: Any Snap that accepts binary streaming data in its input view. Examples: Mapper and File Writer.

Prerequisites

Write access to the SnapLogic Data Catalog.

Configuring Accounts

Accounts are not used with this Snap.

Configuring Views

Input

This Snap has exactly one document input view.
OutputThis Snap has exactly one document output view.
ErrorThis Snap has one document error view.

Troubleshooting

None.

Limitations and Known Issues

None.

Modes


Snap Settings


LabelRequired. The name for the Snap. Modify this to be more specific, especially if there are more than one of the same Snap in the pipeline.
Table NameEnter the name of the target Table Asset in the Data Catalog. You can either enter this information manually or you can select the table from the suggestible drop-down.
Data LocationEnter the location of the source data from which the Table Asset in the Data Catalog originates.
Partition Keys

Add the partition keys which you want to delete. You list the partition keys by specifying Key Column and Key Value combinations to identify the precise row and column from which to create a partition.

Default value: None

Key Name

Specify the key you want to use to locate a specific partition in a metadata table.

Example: airline_code

Default value: None

Operator

Specify the operator to use to locate the table partition.

Example: !=

Default value: =

Key Value

Specify the value to use to locate the table partition.

Example: 10

Default value: None

Snap execution

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.
  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.


Example


Pipeline

The following Pipeline demonstrates how to overwrite an existing partition by the functions of the three Data Catalog Service Snaps: Catalog Query, Catalog Delete, and Catalog Insert. Because you cannot edit the Data Catalog in Manager, you can use this Pipeline as a pattern for overwriting partitions in the Data Catalog.  

The Catalog Query Snap queries for a partition, age, in the Asset named table1.

The Catalog Delete Snap deletes the partition, PK_1indicated by the Key Name and Key Value. 

To replace this metadata, a JSON Generator Snap is used to generate a document with the metadata name, age, and height.

The data is passed through the Parquet Writer, which writes the JSON document to an S3 bucket.

The Catalog Insert Snap populates the table with the new metadata.

You can view the metadata inserted in the Data Catalog from the resulting operation when you open table1 in Manager > Projects > Assets:

In Manager, click table1,  and click Show Table Schema.




Download


  File Modified
No files shared here yet.



Snap Pack History

 Click to view/expand
Release Snap Pack VersionDateTypeUpdates
November 2024main29029 StableUpdated and certified against the current SnapLogic Platform release.
August 2024main27765 StableUpdated and certified against the current SnapLogic Platform release.

May 2024

main26341

 

Stable

Updated and certified against the current SnapLogic Platform release.

February 2024main25112 StableUpdated and certified against the current SnapLogic Platform release.
November 2023main23721 StableUpdated and certified against the current SnapLogic Platform release.

August 2023

main22460

 

Stable

Updated and certified against the current SnapLogic Platform release.

May 2023main21015 StableUpgraded with the latest SnapLogic Platform release.
February 2023main19844 StableUpgraded with the latest SnapLogic Platform release.
November 2022main18944 StableUpgraded with the latest SnapLogic Platform release.
August 2022main17386
 
StableUpgraded with the latest SnapLogic Platform release.
4.29

main15993

 
StableUpgraded with the latest SnapLogic Platform release.
4.28main14627
 
StableUpgraded with the latest SnapLogic Platform release.

4.27

main12833

 

Stable

Upgraded with the latest SnapLogic Platform release.
4.26main11181
 
StableUpgraded with the latest SnapLogic Platform release.
4.25main9554
 
StableUpgraded with the latest SnapLogic Platform release.
4.24main8556
StableUpgraded with the latest SnapLogic Platform release.
4.23main7430
 
StableUpgraded with the latest SnapLogic Platform release.
4.22main6403
 
StableUpgraded with the latest SnapLogic Platform release.
4.21snapsmrc542-StableUpgraded with the latest SnapLogic Platform release.
4.20snaprsmrc528-StableUpgraded with the latest SnapLogic Platform release.
4.19snaprsmrc528-StableUpgraded with the latest SnapLogic Platform release.
4.18snapsmrc523-StableUpgraded with the latest SnapLogic Platform release.
4.17 PatchALL7402-Latest

Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

4.16

snapsmrc508-Stable

New Snap. Added the Catalog Delete Snap to remove tables and table partitions from the Data Catalog. 

4.15snapsmrc500-Stable

New Snap Pack: Introducing the Data Catalog Snap Pack with the following Snaps: Catalog Insert and Catalog Query.

  • No labels