SAP HANA - Update

Overview

This Snap updates data in a database table. It executes an SQL UPDATE statement for each input document and writes the updated records to the output view.

Supported Accounts

Prerequisites

None.

Limitations and known issues

None.

Snap views

Type Description Examples of upstream and downstream Snaps
Input This Snap has exactly one document input view. Document containing the values to update and the condition values for the WHERE clause.
Output This Snap has exactly one document output view. Document for each record updated, containing the number of rows affected.
Learn more about Error handling.
Note: 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.

Examples

Update records in a table: Update records in a table based on ID.

Snap settings

Note: Learn about the common controls 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: SAP HANA - Update

Example: Update employee records

Schema name

String/Expression/ Suggestion

The database schema name. In case it is not defined, then the suggestion for the table name will retrieve all tables names of all schemas. The property is suggestible and will retrieve available database schemas during suggest values.

Default value: [None]

Example: myschema

Table name

String/Expression/ Suggestion

Required. The name of the table to update records in.

Default value: [None]

Example: employees

Update condition

String/Expression

Required. The WHERE clause of the UPDATE statement. This supports document value substitution (such as $person.id will be substituted with the value found in the incoming document at that path).

Default value: [None]

Example: id = $id

Number of retries

Integer

Specifies the maximum number of attempts to be made to receive a response. The request is terminated if the attempts do not result in a response.

Default value: 0

Example: 3

Retry interval (seconds)

Integer

Specifies the time interval between two successive retry requests. A retry happens only when the previous attempt resulted in an exception.

Default value: 1

Example: 10

Snap execution

Dropdown list

Choose 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, by extension, its downstream Snaps.

Default value: Execute only

Troubleshooting

None.