Hello! I have an issue with a event property showi...
# support
c
Hello! I have an issue with a event property showing up in snowflake as a varchar when it should be an array. Can you help me figure out how to fix it?
This is an screenshot of what the event payload looks like for that event property:
This is what it shows up as in snowflake:
h
If you alter the column in snowflake rudder should abide by the new schema
c
Hey! Thank you for your response. What would be the best strategy to alter the column? I played around with some TO_VARIANT and TO_ARRAY adjustments to the column but the results were not ideal.
That said, I assume the alter itself would look like:
Copy code
alter table object_displayed alter objects set data type VARIANT;
again, I'm nervous to do the above alter statement because of how bad the data looked when I used the "TO_VARIANT" or "TO_ARRAY" functions.
h
Snowflake isnt my thing, I use Clickhouse - however if you create a new column with the Variant type, copy the data over to the new column (convert into json), drop old column, renane new to old then work with the data as json (with flattern etc)
rudder will let you store the whole event as one big variant column in snowflake iirc
c
Awesome thank you for the resources! I think I've figured out how to do it downstream in snowflake BUT I think I will go the second route and declare the json columns in the rudderstack/snowflake configuration.
Appreciate your help @hundreds-lifeguard-65770!
👍 1