Commit 626871df authored by Eli Kastelein's avatar Eli Kastelein 🐋

Trim whitespace

parent 1cf1fa4f
......@@ -9,17 +9,17 @@
-%}
WITH project_created AS (
SELECT
creator_id AS user_id,
TO_DATE(project_created_at) AS event_date,
'project_created_at' AS event_type,
{{ dbt_utils.surrogate_key('event_date', 'event_type', 'project_id') }}
AS sk_id
FROM {{ref('gitlab_dotcom_projects_xf')}}
WHERE project_created_at >= '2015-01-01'
)
, user_created AS (
......@@ -30,7 +30,7 @@ WITH project_created AS (
'user_created' AS event_type,
{{ dbt_utils.surrogate_key('event_date', 'event_type', 'user_id') }}
AS sk_id
FROM {{ref('gitlab_dotcom_users_xf')}}
WHERE user_created_at >= '2015-01-01'
......
WITH manage_snowplow_smau_events AS (
SELECT
user_snowplow_domain_id,
user_custom_id::INTEGER AS gitlab_user_id,
......@@ -8,43 +8,43 @@ WITH manage_snowplow_smau_events AS (
{{ dbt_utils.surrogate_key('page_view_id', 'event_type') }}
AS sk_id,
'snowplow_frontend' AS source_type
FROM {{ ref('manage_snowplow_smau_events')}}
)
, manage_gitlab_dotcom_smau_events AS (
SELECT
NULL AS user_snowplow_domain_id,
user_id::INTEGER AS gitlab_user_id,
event_date,
event_type,
sk_id,
'gitlab_backend' AS source_type
'gitlab_backend' AS source_type
FROM {{ ref('manage_gitlab_dotcom_smau_events')}}
)
, unioned AS (
(
SELECT *
FROM manage_snowplow_smau_events
)
UNION
UNION
(
SELECT *
FROM manage_gitlab_dotcom_smau_events
)
)
SELECT *
SELECT *
FROM unioned
......@@ -55,7 +55,7 @@ WITH snowplow_page_views AS (
'cycle_analytics_viewed' AS event_type,
page_view_id
FROM snowplow_page_views
WHERE page_url_path REGEXP '(\/([0-9A-Za-z_.-])*){2,}\/cycle_analytics'
WHERE page_url_path REGEXP '(\/([0-9A-Za-z_.-])*){2,}\/cycle_analytics'
)
......@@ -118,7 +118,7 @@ WITH snowplow_page_views AS (
FROM snowplow_page_views
WHERE referer_url_path REGEXP '\/users\/sign_in'
AND page_url_path NOT REGEXP '\/users\/sign_in'
)
, unioned AS (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment