Skip to content

Commit

Permalink
Include nightly channel in fenix clients_daily
Browse files Browse the repository at this point in the history
Closes #1077
  • Loading branch information
jklukas committed Jan 21, 2020
1 parent c092f74 commit 1b77ee8
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 4 deletions.
28 changes: 26 additions & 2 deletions sql/org_mozilla_fenix_derived/clients_daily_v1/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ WITH unioned AS (
client_info,
sample_id,
metadata,
normalized_channel,
'release' AS normalized_channel,
metrics AS baseline_metrics,
NULL AS metrics
FROM
Expand All @@ -83,11 +83,35 @@ WITH unioned AS (
client_info,
sample_id,
metadata,
normalized_channel,
'release' AS normalized_channel,
NULL AS baseline_metrics,
metrics
FROM
org_mozilla_fenix_stable.metrics_v1
UNION ALL
SELECT
submission_timestamp,
document_id,
client_info,
sample_id,
metadata,
'nightly' AS normalized_channel,
metrics AS baseline_metrics,
NULL AS metrics
FROM
org_mozilla_fenix_nightly_stable.baseline_v1
UNION ALL
SELECT
submission_timestamp,
document_id,
client_info,
sample_id,
metadata,
'nightly' AS normalized_channel,
NULL AS baseline_metrics,
metrics
FROM
org_mozilla_fenix_nightly_stable.metrics_v1
),
--
base AS (
Expand Down
28 changes: 26 additions & 2 deletions templates/org_mozilla_fenix_derived/clients_daily_v1/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WITH unioned AS (
client_info,
sample_id,
metadata,
normalized_channel,
'release' AS normalized_channel,
metrics AS baseline_metrics,
NULL AS metrics
FROM
Expand All @@ -17,11 +17,35 @@ WITH unioned AS (
client_info,
sample_id,
metadata,
normalized_channel,
'release' AS normalized_channel,
NULL AS baseline_metrics,
metrics
FROM
org_mozilla_fenix_stable.metrics_v1
UNION ALL
SELECT
submission_timestamp,
document_id,
client_info,
sample_id,
metadata,
'nightly' AS normalized_channel,
metrics AS baseline_metrics,
NULL AS metrics
FROM
org_mozilla_fenix_nightly_stable.baseline_v1
UNION ALL
SELECT
submission_timestamp,
document_id,
client_info,
sample_id,
metadata,
'nightly' AS normalized_channel,
NULL AS baseline_metrics,
metrics
FROM
org_mozilla_fenix_nightly_stable.metrics_v1
),
--
base AS (
Expand Down

0 comments on commit 1b77ee8

Please sign in to comment.