With the default setting, Cloudera SQL Stream Builder (SSB) uses the timestamp that Kafka stores with each record as
the event time. You do not need a timestamp column in the messages.
-
In the Streaming SQL Console, click Projects in the left
navigation pane, and click the name of your project.
The project opens, with the Explorer panel on the left.
To open the Streaming SQL Console, see Accessing Cloudera SQL Stream Builder.
-
Open the Kafka table, and click the Event Time tab.
-
Keep Use Kafka Timestamps on.
-
Keep Event Time Column as
eventTimestamp, or
enter another name.
- Optional:
Optional: Change Watermark
Seconds.
The generated DDL has the following form:
`eventTimestamp` TIMESTAMP_LTZ(3) METADATA FROM 'timestamp',
WATERMARK FOR `eventTimestamp` AS `eventTimestamp` - INTERVAL '3' SECOND