type: Provides the type of the statement being described.
info: A key-value list of objects used within the statement and specific information about them:
ddl/sink: A new relation the statement creates to write to — or, respectively, an existing relation to which the statement writes new records.
Provides fqn, type, db_name, schema_name, name, and store_name. A fqn is in the format of org.db.schema.relation.
Sources: List of relations the statement uses for reading records.
Provides fqn, type, db_name, schema_name, name, and store_name.
Examples
Describe a stream DDL statement
In this example, a CREATE STREAM statement returns a ddl field for the pageviews stream that would be created if the statement was executed:
Describe a CCAS filter statement
In this example, pageviewsclChangelog is filtered and writes its result into pageviewscl_6 changelog:
Describe a CSAS JOIN statement
In this example, the described statement joins the pageviewsStream and users1Changelog changelog before filtering and writing its results into the temporaljoin stream:
Describe an INSERT INTO statement
The example below shows that the statement filters the pageviews stream and writes its results into the existing relation called pageviews_6 of type stream: