From 45b4813c9fe5345f31d1fda57266846a5de35055 Mon Sep 17 00:00:00 2001 From: Drew Banin Date: Sun, 30 Oct 2016 12:45:43 -0400 Subject: [PATCH] prefix models with snowplow_ --- models/events/snowplow_enriched_events.sql | 2 +- models/identification/{id_map.sql => snowplow_id_map.sql} | 0 models/transformed/{page_views.sql => snowplow_page_views.sql} | 0 models/transformed/{sessions.sql => snowplow_sessions.sql} | 0 models/transformed/{visitors.sql => snowplow_visitors.sql} | 0 5 files changed, 1 insertion(+), 1 deletion(-) rename models/identification/{id_map.sql => snowplow_id_map.sql} (100%) rename models/transformed/{page_views.sql => snowplow_page_views.sql} (100%) rename models/transformed/{sessions.sql => snowplow_sessions.sql} (100%) rename models/transformed/{visitors.sql => snowplow_visitors.sql} (100%) diff --git a/models/events/snowplow_enriched_events.sql b/models/events/snowplow_enriched_events.sql index 51cc678..bc1e349 100644 --- a/models/events/snowplow_enriched_events.sql +++ b/models/events/snowplow_enriched_events.sql @@ -80,7 +80,7 @@ WITH events AS ( FROM {{ var('events_table') }} as e - LEFT JOIN {{ ref('id_map') }} AS u ON u.domain_userid = e.domain_userid + LEFT JOIN {{ ref('snowplow_id_map') }} AS u ON u.domain_userid = e.domain_userid WHERE e.domain_userid != '' -- do not aggregate missing values AND e.domain_userid IS NOT NULL -- do not aggregate NULL diff --git a/models/identification/id_map.sql b/models/identification/snowplow_id_map.sql similarity index 100% rename from models/identification/id_map.sql rename to models/identification/snowplow_id_map.sql diff --git a/models/transformed/page_views.sql b/models/transformed/snowplow_page_views.sql similarity index 100% rename from models/transformed/page_views.sql rename to models/transformed/snowplow_page_views.sql diff --git a/models/transformed/sessions.sql b/models/transformed/snowplow_sessions.sql similarity index 100% rename from models/transformed/sessions.sql rename to models/transformed/snowplow_sessions.sql diff --git a/models/transformed/visitors.sql b/models/transformed/snowplow_visitors.sql similarity index 100% rename from models/transformed/visitors.sql rename to models/transformed/snowplow_visitors.sql