我创建了这个记录:
new ProducerRecord(topic = "petstore-msg-topic", key = msg.username, value = s"${msg.route},${msg.time}")
我现在想做这样的事情:
CREATE STREAM petstorePages (KEY, route VARCHAR, time VARCHAR) \
WITH (KAFKA_TOPIC='petstore-msg-topic', VALUE_FORMAT='DELIMITED');
是否有可能在 Stream 创建中访问密钥,或者我是否必须在值中也包含密钥?