Skip to content

Commit 6e7f3df

Browse files
committed
Improve schemas-in-warehouse page for objects and arrays
1 parent 619ce07 commit 6e7f3df

File tree

1 file changed

+45
-3
lines changed
  • docs/api-reference/loaders-storage-targets/schemas-in-warehouse

1 file changed

+45
-3
lines changed

docs/api-reference/loaders-storage-targets/schemas-in-warehouse/index.md

Lines changed: 45 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,7 @@ Objects can be nullable. Nested fields can also be nullable (same rules as for e
961961
}
962962
```
963963

964-
If the `"items"` key is missing, the type for the entire array will be `STRING` instead of `REPEATED`.
965-
966-
Arrays can be nullable. Nested fields can also be nullable (same rules as for everything else).
964+
The type of the repeated value is determined by the `"items"` key of the schema. If the `"items"` key is missing, then the repeated type is `STRING`.
967965

968966
</td>
969967
<td>
@@ -1172,6 +1170,50 @@ The row order in this table is important. Type lookup stops after the first matc
11721170
<tr>
11731171
<td>
11741172

1173+
```json
1174+
{
1175+
"type": "object",
1176+
"properties": {...}
1177+
}
1178+
```
1179+
1180+
If the `"properties"` key is missing, the type for the entire object will be `STRING` instead of `STRUCT`.
1181+
1182+
Objects can be nullable. Nested fields can also be nullable (same rules as for everything else).
1183+
1184+
</td>
1185+
<td>
1186+
1187+
`STRUCT`
1188+
1189+
</td>
1190+
</tr>
1191+
1192+
<tr>
1193+
<td>
1194+
1195+
```json
1196+
{
1197+
"type": "array",
1198+
"items": {...}
1199+
}
1200+
```
1201+
1202+
The type of values within the `ARRAY` is determined by the `"items"` key of the schema. If the `"items"` key is missing, then the values within the array will have type `STRING`.
1203+
1204+
Arrays can be nullable. Nested fields can also be nullable (same rules as for everything else).
1205+
1206+
</td>
1207+
<td>
1208+
1209+
`REPEATED`
1210+
1211+
</td>
1212+
</tr>
1213+
1214+
<tr>
1215+
<td>
1216+
11751217
```json
11761218
{
11771219
"type": "string",

0 commit comments

Comments
 (0)