Introduces a CCL query to a derived element.
[...] AS CCL Query [...]
AS | The AS clause introduces a CCL query to the rest of the statement. |
CCL Query |
The body of the CCL query. |
The AS clause is used within derived elements (streams, windows, and delta streams) to provide a CCL query that determines the type of data processed by the derived element. Because of this, the AS clause is valid only with derived elements.
See the Queries section for information on structuring a query.
CREATE STREAM win1 SCHEMA ( col1 string ) AS SELECT inputStream.col1 FROM inputStream;