File tree Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Expand file tree Collapse file tree 1 file changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,11 @@ Nested Field Schema Example
169
169
The converter handles schemas with nested key or value structures.
170
170
The following is an example AVRO schema with nested fields:
171
171
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
+
172
177
.. code-block:: json
173
178
174
179
{
@@ -189,21 +194,11 @@ The following is an example AVRO schema with nested fields:
189
194
"type": "boolean"
190
195
},
191
196
{
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"
207
202
},
208
203
{
209
204
"name": "food",
You can’t perform that action at this time.
0 commit comments