Skip to content

Commit 5fd4716

Browse files
committed
doc: Minor README fixes
1 parent 527d298 commit 5fd4716

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ The transformation defines the following configurations:
9999
- `fail` - fail with `DataException`.
100100

101101
Here is an example of this transformation configuration:
102+
102103
```properties
103104
transforms=TombstoneHandler
104105
transforms.TombstoneHandler.type=io.aiven.kafka.connect.transforms.TombstoneHandler
@@ -139,6 +140,7 @@ This transformation converts a record into a tombstone by setting its value and
139140
It can be used together with predicates, for example, to create a tombstone event from a delete event produced by a source connector.
140141

141142
Here is an example of this transformation configuration:
143+
142144
```properties
143145
transforms=MakeTombstone
144146
transforms.MakeTombstone.type=io.aiven.kafka.connect.transforms.MakeTombstone
@@ -188,6 +190,7 @@ transforms.ExtractTopicFromSchemaName.type=io.aiven.kafka.connect.transforms.Ext
188190
transforms.ExtractTopicFromSchemaName.schema.name.topic-map=com.acme.schema.SchemaNameToTopic1:TheNameToReplace1,com.acme.schema.SchemaNameToTopic2:TheNameToReplace2
189191

190192
```
193+
191194
And here is an example of this transformation configuration (using :schema.name.regex)
192195

193196
```properties
@@ -232,7 +235,7 @@ This supports extracting information from a record key with a schema (e.g. Avro)
232235
The transformation defines the following configurations:
233236

234237
- `key.fields` - The comma-separated name(s) of the fields in the record key that should be extracted, or `*` to use the entire key.
235-
- `value.fields` - The comma-separated name(s) of the fields to add into the record value, in the same order as `key.field.names`.
238+
- `value.fields` - The comma-separated name(s) of the fields to add into the record value, in the same order as `key.fields`.
236239

237240
Any empty or missing value field uses the same name as the key field by default. If a `*` is specified as the key field, its default value field name is `_key`.
238241

@@ -253,12 +256,10 @@ transforms.copyKey.type=io.aiven.kafka.connect.transforms.KeyToValue
253256
transforms.copyKey.key.fields=*
254257
```
255258

256-
257259
## License
258260

259261
This project is licensed under the [Apache License, Version 2.0](LICENSE).
260262

261263
## Trademarks
262264

263265
Apache Kafka and Apache Kafka Connect are either registered trademarks or trademarks of the Apache Software Foundation in the United States and/or other countries.
264-

0 commit comments

Comments
 (0)