concept KSQL stream in category kafka

This is an excerpt from Manning's book Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API.
With this one statement, you create a KSQL Streams instance that you can issue queries against. The WITH clause has two required parameters: VALUE_FORMAT, telling KSQL the format of the data, and KAFKA_TOPIC, telling KSQL where to pull the data from. There are two additional parameters you can use in the WITH clause when creating a stream. The first is TIMESTAMP, which associates the message timestamp with a column in the KSQL stream. Operations requiring a timestamp, such as windowing, will use this column to process the record. The other parameter is KEY, which associates the key of the message with a column on the defined stream. In this case, the message key for the stock-transactions topic matches the symbol field in the JSON value, so you don’t need to specify the key. Had this not been the case, you would have needed to map the key to a named column, because you always need a key to perform grouping operations. You’ll see this when you execute the stream SQL.