Vertica - Delete

The Vertica - Delete Snap executes a SQL DELETE statement with the given properties.
vertica-delete-overview

This Snap deletes records from a Vertica table based on a specified WHERE clause condition.

Prerequisites

None.

Supported Accounts

Snap views

Type Description Examples of upstream and downstream Snaps
Input

This Snap has exactly one document input view.

Output

This Snap has at most one document output view.

Error

This Snap has at most one document error view and produces zero or more documents in the view.

Warning: Database Write Snaps output all records of a batch (as configured in your account settings) to the error view if the write fails during batch processing.

Snap settings

Legend:
  • Expression icon (): Allows using pipeline parameters to set field values dynamically (if enabled). SnapLogic Expressions are not supported. If disabled, you can provide a static value.
  • SnapGPT (): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
  • Suggestion icon (): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
  • Upload : Uploads files. Learn more.
Learn more about the icons in the Snap settings dialog.
Field/Field set Description
Label

String

Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline.

Default value: Vertica Delete

Example: Vertica Delete
Schema name

String/Expression/ Suggestion

Required. Specify the database schema name. Selecting a schema filters the Table name list to show only those tables within the selected schema. The property is suggestible and retrieves available database schemas during suggest values.
Note: The values can be passed using the pipeline parameters but not the upstream parameter.

Default value: N/A

Example: public

Table name

String/Expression/ Suggestion

Required. Specify the table on which to execute the delete operation.
Note: The values can be passed using the pipeline parameters but not the upstream parameter.

Default value: N/A

Example: emp

Delete condition (deletes all records from table if left blank)

String/Expression

Specify the SQL WHERE clause of the delete statement. The delete condition may also be passed via an upstream Snap or through the pipeline parameters. The WHERE clause of the delete statement. Document field values can be substituted into the WHERE clause by providing the path. For example, $emp.empno would insert the field empno from the emp object into the query (empno == $emp.empno would become empno == 101 if $emp.empno evaluates to 101).
Note: Specify a valid WHERE clause for the delete condition. If you leave this field blank, the Snap deletes all the records from the table.

Examples:

Without using expressions:

Using expressions:

  • "EMPNO=$EMPNO and ENAME=$EMPNAME"
  • email = $email
  • emp=$emp
  • "emp='" + $emp + "'"
  • "EMPNO=" + $EMPNO + " and ENAME='" + $EMPNAME+ "'"
Warning: Using expressions that join strings together to create SQL queries or conditions has a potential SQL injection risk and is hence unsafe. Ensure that you understand all implications and risks involved before using concatenation of strings with '=' Expression enabled.

Default value: N/A

Number of retries

Integer/Expression

Specify the maximum number of times that the process must be retried before displaying an error.

Default value: 0

Example: 2

Retry interval (seconds)

Integer/Expression

Specify the maximum resting time in seconds between subsequent retries.

Default value: 1

Example: 2

Snap Execution

Dropdown list

Choose one of the three modes in which the Snap executes. The 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.

Default value: Execute only

Example: Validate & Execute