kafka-connect-elasticsearch icon indicating copy to clipboard operation
kafka-connect-elasticsearch copied to clipboard

add 'data.stream.namespace' configuration property

Open fbaligand opened this issue 6 months ago • 2 comments

Problem

Currently, we cannot fully customize the target data stream. More precisely, the namespace part of the data stream is necessarily the topic. This is especially a problem, when you want that a connector consumes several topics for only one target data stream. More simply, I want to be able to define target data stream name, regardless of the input topic name.

Solution

This PR aims to add a new configuration property named 'data.stream.namespace'. This property aims to customize data stream "namespace" part (as its name says). This is an optional setting, that have ${topic} as default value ; so that, by default, it works as currently, no breaking change. By the way, user is able to define a custom namespace that contains topic name like that: my_prefix_${topic}

Does this solution apply anywhere else?
  • [ ] yes
  • [x ] no
If yes, where?

Test Strategy

Testing done:
  • [ x] Unit tests
  • [ ] Integration tests
  • [ ] System tests
  • [ ] Manual tests

Release Plan

I guess that you (Confluent Inc.) is responsible for release plan.

I am merging to master

It is safe to revert or rollback

fbaligand avatar Jan 01 '24 18:01 fbaligand

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] avatar Jan 01 '24 18:01 cla-assistant[bot]

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

cla-assistant[bot] avatar Jan 01 '24 18:01 cla-assistant[bot]