You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Martin Sillence (Jira)" <ji...@apache.org> on 2021/09/14 08:18:00 UTC

[jira] [Created] (KAFKA-13297) smt to rename schemas based on regex

Martin Sillence created KAFKA-13297:
---------------------------------------

             Summary: smt to rename schemas based on regex
                 Key: KAFKA-13297
                 URL: https://issues.apache.org/jira/browse/KAFKA-13297
             Project: Kafka
          Issue Type: New Feature
            Reporter: Martin Sillence


Needed as debezium connector creates schemas with the name of the host and database schema
 When we move from dev to production these names change
 Using Avro the the name in the schema is used to pick the class and thus will fail when we move between environments

 

smt to rename schemas based on regex

example configuration:
 {{    "transforms.regexSchema.regex": ".*\\.([^.]*)\\.(Value|Key)",
    "transforms.regexSchema.replacement": "com.company.schema.$1.$2",}}
 

https://github.com/apache/kafka/pull/11322



--
This message was sent by Atlassian Jira
(v8.3.4#803005)