Using the default Kafka timestamps

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.

  1. 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.
  2. Open the Kafka table, and click the Event Time tab.
  3. Keep Use Kafka Timestamps on.
  4. Keep Event Time Column as eventTimestamp, or enter another name.
  5. 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