Process operators
Flink turns your SQL into a graph of operators. Each operator applies one transformation to the data that comes from the sources, and passes the result on, until the data reaches the sinks.
When you run a job, Cloudera SQL Stream Builder (SSB) translates the SQL query into a Flink job. The Flink job is a graph of operators that connect the sources to the sinks. Operators run in parallel, and the number of parallel instances is the parallelism of the job.
The following are some of the operators that you see for common SQL constructs:
| SQL | Operator |
|---|---|
FROM a table |
A source operator that reads from the connector |
SELECT and WHERE |
A calculation operator that projects columns and filters rows |
GROUP BY |
An aggregation operator that keeps state for each group |
| A window aggregation | An operator that collects rows into windows and emits a result when a window closes |
JOIN |
A join operator that keeps state for the rows of the joined tables |
INSERT INTO |
A sink operator that writes to the connector |
To see the operators of a running job, click the Flink Dashboard icon in the toolbar of the SQL editor, and open the job. The icon is displayed while the job is Running. The job graph displays the operators, and the number of records that each operator processes. This helps you find the operator that is slow or that has a long backlog.
