I'm creating a KTable from a topic with JSON value format, the producers of the topic also include a key for each message at Kafka level and JSON message itself contains a JSON property called key
which I use as ROWKEY
in the following statement:
create table SUBSCRIPTIONS(key varchar, application_id varchar, subscription_id varchar) with (KAFKA_TOPIC='INCOMING_SUBSCRIPTIONS', VALUE_FORMAT='JSON', KEY='key');
Is there a way to create a KSQL table using the key from the messages in the the topic as ROWKEY
so I don't have to duplicate the key value at topic level?