I'm new to this KsqlDB, so please bear with me. What I want to do is add a key-value pair to a STRUCT key.
My source topic has the following structure:
KEY = 0034e1b5-3f4a-4bf5-bc82-693e3363b451
VALUE = {
"Branch": null,
"Company Name": "testing2",
"Email": "
noe...@nomail.com",
"Employee Code": null,
"First Name": "first name",
"Group(s)": "Portland",
"Job Title": "simply great",
"Last Name": "Last Name",
"UserID": 64696,
"Username": "John.Adams"
}How can I use something like CREATE STREAM AS statement to stream an enriched key that adds the UserID from the sources value to a structed key like the following?KEY = {"bv_Uid":64696, "bvUUID":"0034e1b5-3f4a-4bf5-bc82-693e3363b451"}
VALUE = {
"Branch": null,
"Company Name": "testing2",
"Email": "
noe...@nomail.com",
"Employee Code": null,
"First Name": "first name",
"Group(s)": "Portland",
"Job Title": "simply great",
"Last Name": "Last Name",
"UserID": 64696,
"Username": "John.Adams"
}What's unclear to me is when using the create Stream AS statement how do I designate the KEY settings?
(edited)