hey team! we currently have quite a few Ruddersta...
# support
m
hey team! we currently have quite a few Rudderstack events set up in JS and several have properties stored as arrays (eg including item ids shown when a customer performs a search). What we’ve seen is when sending to some destinations these arrays are flattened to individual properties by Rudderstack. example below: original event
Copy code
"example_property": [
"abc",
"def"
]
event sent to destination
Copy code
example_property[0]: "abc"
example_property[1]: "def"
this causes our event properties counts to increase significantly in the destination and limits the analyze we can do. is there a list of data types we could store these in instead of arrays that Rudderstack wouldn’t flatten them? tried to do some research and couldn’t find anything listing them out, but want to confirm which data types would be best to switch too before dedicating time updating the event properties
h
every destination is different - some can handle arrays (clickhouse/snowflake) others cannot so have to be flattened out
you can check the transforms that occur for any given destination https://github.com/rudderlabs/rudder-transformer/tree/develop/src/v0/destinations
m
thanks Redsquare! the destination in question is Heap so will take a look at the transformation in git to see
h
yeah so it imports the flattenJson routine