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
169169The converter handles schemas with nested key or value structures.
170170The 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",
You can’t perform that action at this time.
0 commit comments