Open jaapterwoerds opened 2 years ago
@valdar I think this would make sense.
@jaapterwoerds thanks for reporting this, I guess we should do something like this in the general Sink connector.
AH nice! +1
@jaapterwoerds would you be interested in contributing this feature (with all guidance and support I gang give) ?
I was surprised I don't seem to be able to use the key, offset, partition and topic like I could when using Camel standalone. Maybe I'm missing something that 's already there somehow. I think it would be nice to have the same functionality available in the camel kafka connector.
I've got some code laying around so I can use this in a dynamic file name. I couldn't get the escaping of the Kafka header names to work(these constant values contain a dot, so that's why I l replace it by underscores here. I read somewhere this is a know limitation in camel, by I couldn't find the reference to that doc back.
And in the connector configuration: