fullstorydev / dbt_fullstory

The official FullStory dbt package
Apache License 2.0
2 stars 3 forks source link

Add shim to correct test seed data types in Snowflake #2

Closed craigrmccown closed 1 year ago

craigrmccown commented 1 year ago

Problem

The Snowflake schema uses the variant data type for the JSON columns event_properties and source_properties. However, dbt interprets these columns as varchar, and explicitly setting the column data type in the seed configuration results in an error.

Changes

The result is that, in Snowflake, all views are built on top of the shim view instead of the physical seed table. Other target types are unaffected.