Skip to content

Commit 1298f64

Browse files
authored
Add set-up retl
1 parent d635453 commit 1298f64

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/connections/reverse-etl/setup.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,18 @@ Select array | This enables you to send all nested properties within the array.
172172
173173
Objects in an array don't need to have the same properties. If a user selects a missing property in the input object for a mapping field, the output object will miss the property.
174174

175+
### Handling Nested Objects and Arrays
176+
Segment's warehouse pipeline flattens nested fields in context, traits, and properties. As part of this process, any nested arrays or objects within these fields are automatically stringified when sent to downstream destinations via Reverse ETL.
177+
178+
If your destination expects specific fields to be formatted as arrays or objects rather than strings, you'll need to convert the data back to its original structure before mapping.
179+
180+
For example, in Snowflake, you can use the PARSE_JSON function to convert a stringified object or array back to proper JSON format:
181+
```json
182+
SELECT PARSE_JSON(your_column) AS parsed_data
183+
FROM your_table;
184+
Reverse ETL supports reading data in JSON format and can properly convert it to objects or arrays for mapping. This ensures compatibility with destination schemas that require structured data.
185+
```
186+
175187
### Null value management
176188
You can choose to exclude null values from optional mapping fields in your syncs to some destinations. Excluding null values helps you maintain data integrity in your downstream destinations, as syncing a null value for an optional field may overwrite an existing value in your downstream tool.
177189

0 commit comments

Comments
 (0)