Write HANA Table V2
The Write HANA Table operator ingests data into one or more tables on an SAP HANA database.
The target table(s) must already exist at initialization time (in Static mode) or whenever input is received (in Dynamic mode). If table creation is intended as part of the same pipeline, consider using the Initialize HANA Table V2 operator in conjunction with this one.
Configuration Parameters
|
Name |
ID |
Type |
Description |
|---|---|---|---|
|
Connection |
connection |
object |
Mandatory. The object containing the connection parameters to a HANA instance. Default: {} |
|
Configuration Mode |
configMode |
string |
Determines how the operator obtains the target table name.
Accepted values:
Default: "Dynamic (from input)" |
|
Table Name |
tableName |
string |
The name of the table to be used as fixed destination in Static mode. Default: "" |
|
Statement Type |
statementType |
string |
Determines whether data is to be ingested using an INSERT or an UPSERT statement. Default: "INSERT" |
|
Connection Timeout |
connectionTimeout |
string |
The maximum amount of time to wait for the server. If the operator does not hear from the server within this period of time, the connection is closed. If set to zero, the operator waits for the server indefinitely. Default: "50s" |
|
Error Handling |
errorHandling |
string |
Details available at Error Handling in Generation 2 Operators. Default: "terminate on error" |
Input
|
Input |
Kind |
Type ID |
Description |
|---|---|---|---|
|
input |
table |
* |
It depends on the Configuration Mode:
The com.sap.headers.hana.table header with complete DDL details is not necessary in this case but is taken into account if provided (except for the table name). |
Output
|
Output |
Kind |
Type ID |
Description |
|---|---|---|---|
|
success |
table |
com.sap.hana.affected |
A table of type com.sap.hana.affected containing the details of how many rows were received and affected. The output also includes the header com.sap.headers.hana.table with details of the table and columns that were modified by the input and data received. Due to a limitation on the HANA driver side, it is not possible to keep track of the affected rows when there are LOB columns involved, so the output will contain a -1 for it instead. |
|
error |
structure |
com.sap.error |
An error message, if applicable (see Error Handling in Generation 2 Operators). |