snowplow / dbt-snowplow-mobile

A fully incremental model, that transforms raw mobile event data generated by the Snowplow mobile trackers into a series of derived tables of varying levels of aggregation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix unstruct_events

agnessnowplow opened this issue · comments

Describe the bug

Currently the unstruct_event_com_snowplowanalytics_mobile_screen_view_1 is treated as an array just like similar context fields such as the contexts_com_snowplowanalytics_mobile_screen_1. This, however, produces a Field name should be String Literal, but it's 0 error when the snowplow_mobile_base_events_this_run is executed. To resolve this, [0] needs to be removed during field extraction. Example: a.unstruct_event_com_snowplowanalytics_mobile_screen_view_1[0].id::STRING AS screen_view_id