Continuous SQL
Cloudera SQL Stream Builder (SSB) runs Structured Query Language (SQL) statements continuously. This is called Continuous SQL or Streaming SQL.
In traditional SQL, a query runs against the data that exists when you run it, returns a result, and ends. In Continuous SQL, the data has a start but no end. The query processes each new event as it arrives, and its results keep changing.
A continuous query returns results as new data arrives, and it keeps running until you stop it. Continuous SQL can run against both bounded and unbounded streams of data. The results are sent to a sink, and other applications can read them from there.
When you define your job in SQL, SSB interprets the statement and validates it against the schemas of your tables. After you run the statement, SSB returns the results that match the criteria continuously.
A continuous query runs as a Flink job until you stop it. The job writes its results to the
sinks that your SQL names, for example, by using an INSERT INTO
statement.
You can also run a job on bounded data. In the job settings, the runtime mode of a job is STREAMING by default. BATCH runs a job on bounded sources, and AUTOMATIC chooses the mode based on whether the sources are bounded. You can change the runtime mode only for jobs in application mode. Jobs in session mode always use STREAMING.
