Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2504

Add ability to configure prefix for the add.fields and add.headers

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 1.3.0.Beta2
    • 1.2.2.Final
    • core-library
    • None

      Currently Debezium always add "__" as the prefix for the fields and headers. 

      When we use camel kafka connector (especially for the headers) we must prefix the header with "CamelHeader.". Else these are not getting added to the message.

      We need to add support in the io.debezium.transforms.ExtractNewRecordState

      • "add.fields.prefix" -> String with the default value of "__"
      • "add.headers.prefix" -> String with the default value of  "__". 

      When it is there like this for camel kafka connector, we can set the configuration "add.headers.prefix" to "CamelHeader."

       

       

            [DBZ-2504] Add ability to configure prefix for the add.fields and add.headers

            Released

            Jiri Pechanec added a comment - Released

            Yes. I will submit the PR
             

            Ganesh Ramasubramanian (Inactive) added a comment - Yes. I will submit the PR  

            Gunnar Morling added a comment - - edited

            That's reasonable request; would you be interested in sending a PR? For the time being, a custom SMT will work, too.

            Gunnar Morling added a comment - - edited That's reasonable request; would you be interested in sending a PR? For the time being, a custom SMT will work, too.

              Unassigned Unassigned
              rgannu Ganesh Ramasubramanian (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: