Sink connector - Add key in separate column

In kafka I have a message with key “id”
How can I add this key to a separate column when setting up the sink connector


Is that the value schema? Have you tried using the ValueToKey transform with fields set to id?

And not clear what connector you’re using, but JDBC sink can already write keys to columns

I solved this case.
I used Custom transform based InsertField transform and added new type record.key().toString()

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.