MySQL SQL Consumer (Deprecated)

Performs a SQL query in a MySQL database.

This operator is deprecated. We recommend using the SQL Consumer V2 operator.

It uses Flowagent subengine for execution, and you need to connect it to a Flowagent-based producer operator (for example, Flowagent CSV Producer (Deprecated)).

Configuration Parameters

Parameter

Type

Description

MySQL Connection

object

The object containing the connection parameters to a MySQL database.

Native SQL

string

SQL statement that is used to read from the source. The syntax depends on the underlying 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, for example, Flowagent File Producer).

Default: None

Logical Partition Specification

object

For more information, see Partitioning.

Additional Session Parameters

string

Set session parameters that will affect the connection with the source.

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

MySQL table name from which the data will be read, usually in <Schema>.<TableName> format.

Output

Output

Type

Description

outConfig

string.flowagent.config

Flowagent type port, which only Flowagent producers can consume (for example, Flowagent File Producer). To get the data as string, Flowagent CSV Producer can be used as producer.

outError

string

Operator error. If mapped, the operator error is sent to the operator this port is mapped to and the graph remains running. If not mapped, the graph terminates with the operator error.