Skip to content

Commit 4f8ae74

Browse files
authored
Merge pull request #274 from segmentio/repo-sync
repo sync
2 parents 5f549dd + 4812d8a commit 4f8ae74

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/connections/storage/warehouses/schema.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ A **schema** describes the way that the data in a warehouse is organized. Segmen
1212

1313
Segment's libraries pass nested objects and arrays into tracking calls as **properties**, **traits**, and **tracking calls**. To preserve the quality of your events data, Segment uses the following methods to store properties and traits in database tables:
1414

15-
- The warehouse connector stringifies all **properties** that contain a nested **array/object**
15+
- The warehouse connector stringifies all **properties** that contain a nested **array**
1616
- The warehouse connector stringifies all **context fields** that contain a nested **array**
1717
- The warehouse connector stringifies all **traits** that contain a nested **array**
18+
- The warehouse connector "flattens" all **properties** that contain a nested **object**
1819
- The warehouse connector "flattens" all **traits** that contain a nested **object**
1920
- The warehouse connector optionally stringifies **arrays** when they follow the [Ecommerce spec](/docs/connections/spec/ecommerce/v2/)
2021
- The warehouse connector "flattens" all **context fields** that contain a nested **object** (for example, context.field.nestedA.nestedB becomes a column called context_field_nestedA_nestedB)
@@ -72,7 +73,7 @@ address_street<br/>
7273
</tr>
7374

7475
<tr>
75-
<td><b>Object (Properties):</b> Stringify</td>
76+
<td><b>Object (Properties):</b> Flatten</td>
7677
<td markdown="1">
7778

7879
```json
@@ -85,9 +86,9 @@ properties: {
8586
</td>
8687
<td>
8788
<b>Column Name:</b><br/>
88-
product_id<br/><br/>
89+
product_id_sku<br/><br/>
8990
<b>Value:</b><br/>
90-
"{sku:'G-32'}"
91+
"G-32"
9192
</td>
9293
</tr>
9394

0 commit comments

Comments
 (0)