Modeling Guide for SAP Data Hub

DB2 SQL Consumer

DB2 SQL Consumer (com.sap.dh.ds.db2.sql.consumer) is based on system.externalOperator and uses datahub-flowagent for execution.

Configuration Parameters

Parameter

Type

Description

DB2 Connection object The object containing the connection parameters to a DB2 database.
DB2 version (type enum)
DB2 version.
Default: DB2 UDB 11.x)
Host (type string)
DB2 host.
Port (type number)
DB2 port.
Database name (type string)
DB2 database name.
User (type string)
DB2 user.
Password (type string)
DB2 password.
Additional Session Parameters (type string)
Set session parameters which will affect the connection with the source.
Native SQL string SQL statement which will be used to read from the source. The syntax depends on the underlying source.
Additional Session Parameters string Set session parameters which will affect the connection with the source.
Partition Type

string

Partitioning is used to enable data reading in parallel. In this case, the producer must be inside a group with multiplicity equal to the number of partitions (only the producer, i.e., Flowagent File Producer).

For more information about partitioning, check the documentation presented in the demo graph Ingest DB2 via SQL.

Default: None

Logical Partition Specification object See demo graph documentation Ingest DB2 via SQL.
Fetch Size integer Indicates the number of rows that will be fetched from the source in each request. For wide tables, smaller values are better. For tables with fewer columns, larger values are better.

Default: 100

Input

Input

Type

Description

inSQL

string

SQL statement which will be used to read from the source. The syntax depends on the underlying source.

Output

Output

Type

Description

outConfig

string.flowagent.config

Flowagent type port, which only Flowagent producers can consume (i.e., Flowagent File Producer). In order to get the data as string, Flowagent CSV Producer can be used as producer.

outError

string

Operator error. If mapped, the operator error will be sent to the operator this port is mapped to and the graph will remain running. If not mapped, the graph will terminate with the operator error.