You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,10 +157,12 @@ The `ConfluentAvroStreamEncodingTransformer` is built on [ABRiS](https://github.
157
157
|`transformer.{transformer-id}.value.schema.naming.strategy`| Yes | Subject name strategy of Schema Registry. Possible values are `topic.name`, `record.name` or `topic.record.name`. Equivalent to ABRiS property `SchemaManager.PARAM_VALUE_SCHEMA_NAMING_STRATEGY`|
158
158
|`transformer.{transformer-id}.value.schema.record.name`| Yes for naming strategies `record.name` and `topic.record.name`| Name of the record. Equivalent to ABRiS property `SchemaManager.PARAM_SCHEMA_NAME_FOR_RECORD_STRATEGY`|
159
159
|`transformer.{transformer-id}.value.schema.record.namespace`| Yes for naming strategies `record.name` and `topic.record.name`| Namespace of the record. Equivalent to ABRiS property `SchemaManager.PARAM_SCHEMA_NAMESPACE_FOR_RECORD_STRATEGY`|
160
+
|`transformer.{transformer-id}.value.optional.fields`| No | Comma-separated list of nullable value columns that should get default value null in the avro schema. Nested columns' names should be concatenated with the dot (`.`) |
160
161
|`transformer.{transformer-id}.produce.keys`| No | If set to `true`, keys will be produced according to the properties `key.column.prefix` and `key.column.names` of the [Hyperdrive Context](#hyperdrive-context)|
161
162
|`transformer.{transformer-id}.key.schema.naming.strategy`| Yes if `produce.keys` is true | Subject name strategy for key |
162
163
|`transformer.{transformer-id}.key.schema.record.name`| Yes for key naming strategies `record.name` and `topic.record.name`| Name of the record. |
163
164
|`transformer.{transformer-id}.key.schema.record.namespace`| Yes for key naming strategies `record.name` and `topic.record.name`| Namespace of the record. |
165
+
|`transformer.{transformer-id}.key.optional.fields`| No | Comma-separated list of nullable key columns that should get default value null in the avro schema. Nested columns' names should be concatenated with the dot (`.`) |
164
166
|`transformer.{transformer-id}.schema.registry.basic.auth.user.info.file`| No | A path to a text file, that contains one line in the form `<username>:<password>`. It will be passed as `basic.auth.user.info` to the schema registry config |
165
167
166
168
Any additional properties for the schema registry config can be added with the prefix `transformer.{transformer-id}.schema.registry.options.`
Copy file name to clipboardExpand all lines: ingestor-default/src/main/scala/za/co/absa/hyperdrive/ingestor/implementation/transformer/avro/confluent/ConfluentAvroEncodingTransformer.scala
Copy file name to clipboardExpand all lines: ingestor-default/src/main/scala/za/co/absa/hyperdrive/ingestor/implementation/transformer/avro/confluent/ConfluentAvroEncodingTransformerAttributes.scala
Some("Record namespace for naming strategies record.name or topic.record.name"), required =false),
45
+
KEY_VALUE_OPTIONAL_FIELDS->PropertyMetadata("Value-Record optional fields", Some("Comma-separated list of nullable value columns that should get default value null in the avro schema"), required =false),
Some("Subject name strategy of Schema Registry. Must be one of \"topic.name\", \"record.name\" or \"topic.record.name\""), required =false),
46
49
KEY_SCHEMA_REGISTRY_KEY_RECORD_NAME->PropertyMetadata("Key-Record name", Some("Key-Record name for naming strategies record.name or topic.record.name"), required =false),
47
50
KEY_SCHEMA_REGISTRY_KEY_RECORD_NAMESPACE->PropertyMetadata("Key-Record namespace", Some("Key-Record namespace for naming strategies record.name or topic.record.name"), required =false),
48
-
KEY_SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO_FILE->PropertyMetadata("Basic auth user info file", Some("Text file containing one line in the form <username>:<password> for basic auth in schema registry"), required =false)
51
+
KEY_SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO_FILE->PropertyMetadata("Basic auth user info file", Some("Text file containing one line in the form <username>:<password> for basic auth in schema registry"), required =false),
52
+
KEY_KEY_OPTIONAL_FIELDS->PropertyMetadata("Key-Record optional fields", Some("Comma-separated list of nullable key columns that should get default value null in the avro schema"), required =false)
Copy file name to clipboardExpand all lines: ingestor-default/src/test/scala/za/co/absa/hyperdrive/ingestor/implementation/transformer/avro/confluent/TestConfluentAvroEncodingTransformer.scala
0 commit comments