Skip to content

Commit fc85067

Browse files
steverenschmalliso
authored andcommitted
DOCSP-11928: [KAFKA] Add support for dotted field names
1 parent a9fef99 commit fc85067

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

source/kafka-sink-data-formats.txt

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ Nested Field Schema Example
169169
The converter handles schemas with nested key or value structures.
170170
The following is an example AVRO schema with nested fields:
171171

172+
Note the use of :manual:`dot notation </core/document/index.html#dot-notation>`
173+
in the ``address.city`` and ``address.country`` fields. Dot notation allows
174+
you to specify nested fields without writing separate lines for the top-level
175+
document and its sub-documents.
176+
172177
.. code-block:: json
173178

174179
{
@@ -189,21 +194,11 @@ The following is an example AVRO schema with nested fields:
189194
"type": "boolean"
190195
},
191196
{
192-
"name": "address",
193-
"type": {
194-
"type": "record",
195-
"name": "AddressRecord",
196-
"fields": [
197-
{
198-
"name": "city",
199-
"type": "string"
200-
},
201-
{
202-
"name": "country",
203-
"type": "string"
204-
}
205-
]
206-
}
197+
"name": "address.city",
198+
"type": "string"
199+
{
200+
"name": "address.country",
201+
"type": string"
207202
},
208203
{
209204
"name": "food",

0 commit comments

Comments
 (0)