I am trying to create a jdbc sink connector which reads from a topic and puts data in an existing table. The problem is it is not 1:1 mapping with the table. Rather all the column names are different to what i have in the message
Below is how my message in the topic looks like:
{
"dealNo":"6666777",
"exception":
{"code":12345E
"desc": couldnot process the issue,
},
}
Database table maps like this: ERROR_TB
id: auto generated sequence
srcId : "APP" (need to pass default value)
factory : dealNo (from json)
body : here i need to pass the entire message
description : exception (from json)
Can someone please guide me how to apply transformations for this? i am new to it and not sure how it can be achieved