Table Producer V1 (Deprecated)

This operator reads from any structured operators and produces a table in the specified database. Previously supported in Generation 1 graphs.

The supported databases are:
  • SAP HANA

  • SAP IQ

Configuration Parameters

Parameter

Type

Description

Database Type

string

The target database to operate. Additional parameters may depend on the selected option.

Connection

object

Object containing the connection parameters.

Target

object

The table where the data is written. This field accepts two input formats: adapted dataset of the table, which can be selected via the browsing action, or qualified name in <Schema>.<TableName> format.

Enter the required target table information based on the selected database type. If SAP IQ database is selected, the following properties are available:
Parameter Type Description

Bulk load error toleration

object

Define the number of rows that can have an error for each failure including: unique, null, data value, and foreign key.

  • Unique errors: Number of unique errors to be tolerated.

  • Null errors: Number of null errors to be tolerated.

  • Data value errors: Number of data value errors to be tolerated.

  • Foreign key errors: Number of foreign key operators to be tolerated.

Mode

string

Write mode.

  • Append: Add data to an existing table. When append is selected, the aditional option Update records based on primary key is shown. When this option is selected, the records already in the table are updated if the primary key is the same as a new record being appended. This behavior is the same as using an UPSERT SQL command. If Update records based on primary key is not selected and a collision on the primary key happens, then an error is thrown and the graph fails.

  • Overwrite: Drop the table and create another one according to the source schema.

  • Truncate: Clear the table before inserting data.

Maximum Batch Size

integer

The maximum number of records from the source included in each batch. The actual number of records is automatically calculated based on the dataset definition. To disable the automatic calculation, set the Use Defined Batch Size option to True.

Use Defined Batch Size

boolean

Set to True when the automatic calculation doesn’t provide optimal performance. When set to True, each batch of records contains the number of records entered in the Maximum Batch Size option. For example, when Maximum Batch Size is set to 1000, and Use Defined Batch Size is set to True, then there are 1000 records in each batch. When set to False, then each batch is between 10 and 1000 rows.

Delta Processing

Change Data Applier mode is only applicable to operators that support DELTA extraction, like ABAP ODP Consumer, Cloud Data Integration Consumer, and so on.

Change Data Applier Mode: The delta record provides a row type like Insert (I), Update (U), Delete (D), Before Image (B), Unknown (X), and so on. Either decide to keep a history of changed records (Track Change History), or decide to apply the changes directly to the target (Apply Change Data). Currently, only HANA database supports Apply Change Data mode.

Bulk Loading

Whenever possible, bulk load is enabled for improved loading performance.

SAP IQ: Bulk load is enabled by default for all sources unless there is a BLOB datatype in the source. If there are BLOB objects, remove them using SQL consumer operators or by creating a view in the source. If it is not possible to remove the BLOB objects, this operator loads the data via the regular loading, which might be slow. The bulk load uses a LOAD TABLE statement, relying on named pipes to transfer the data file to the target. To use the LOAD TABLE statement, the SAP IQ user must have the following permissions in the server: LOAD TABLE and ALLOW_READ_CLIENT_FILE. The user might have to be the owner of the table, have database administrator authority, or have ALTER table permission to use the LOAD TABLE statement, depending on the ‘-gl’ property used to start the SAP IQ server.

Unknown Datatypes

When a column has the Unknown datatype, it is skipped during processing, and it is not be reflected in the target table. To avoid this behavior, it is necessary to override the unknown datatype in the adapted dataset of the consumer. See the example below where ${user-defined-length} needs to be replaced with the maximum length of the COL0 in the dataset:

  • Original metadata

  • Modified metadata

Input

Input

Type

Description

inTable

table

Table type port, which comes as output from other structured operators.

Output

Output

Type

Description

outMessage

message

Outputs a message object with the following definition:

  • Body: The fully qualified name of the target table.

  • Attributes:

    • producer.totalRows: Number of rows written to the target.

    • producer.type: Type of the producer that generated the message. Depending on which operator generated the message, you could see: CSV for Flowagent CSV Producer, File for Flowagent File Producer, or Table for Flowagent Table Producer.

    • producer.subType: Subtype of the object that was generated in the target. Depending on the producer settings, you could see one of the following:: TABLE, CSV, PARQUET, or ORC depending on the producer settings.

    • producer.partition.count: Number of partitions from the source.

    • producer.partition.index: The partition index that was processed. The index ranges from 0 to partition.count.

  • Encoding: string