I created this record:
new ProducerRecord(topic = "petstore-msg-topic", key = msg.username, value = s"${msg.route},${msg.time}")
I want now to do something like this:
CREATE STREAM petstorePages (KEY, route VARCHAR, time VARCHAR) \
WITH (KAFKA_TOPIC='petstore-msg-topic', VALUE_FORMAT='DELIMITED');
Is there a possibility to access the key in the Stream creation or do I have to include the key also in the value?