-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…table (#6780) * Create desktop_acquisition_funnel_aggregates_v1 * Add minimum row count check * Fix YAML format, remove trailing space
- Loading branch information
Showing
6 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2075,3 +2075,22 @@ bqetl_default_browser_aggregates: | |
schedule_interval: 0 22 * * * | ||
tags: | ||
- impact/tier_3 | ||
|
||
bqetl_dsktp_acqstn_fnnl: | ||
description: | | ||
This DAG builds the Desktop Acquisiton Funnel aggregate table | ||
default_args: | ||
depends_on_past: false | ||
owner: [email protected] | ||
email: | ||
- [email protected] | ||
- [email protected] | ||
email_on_failure: true | ||
email_on_retry: false | ||
start_date: "2025-01-08" | ||
retries: 2 | ||
retry_delay: 5m | ||
tags: | ||
- impact/tier_2 | ||
repo: bigquery-etl | ||
schedule_interval: 30 11 * * * |
7 changes: 7 additions & 0 deletions
7
sql/moz-fx-data-shared-prod/telemetry/desktop_acquisition_funnel_aggregates/view.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
CREATE OR REPLACE VIEW | ||
`moz-fx-data-shared-prod.telemetry.desktop_acquisition_funnel_aggregates` | ||
AS | ||
SELECT | ||
* | ||
FROM | ||
`moz-fx-data-shared-prod.telemetry_derived.desktop_acquisition_funnel_aggregates_v1` |
2 changes: 2 additions & 0 deletions
2
...fx-data-shared-prod/telemetry_derived/desktop_acquisition_funnel_aggregates_v1/checks.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#fail | ||
{{ min_row_count(1, "first_seen_date = @fsd") }} |
24 changes: 24 additions & 0 deletions
24
...data-shared-prod/telemetry_derived/desktop_acquisition_funnel_aggregates_v1/metadata.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
friendly_name: Desktop Acquisition Funnel Aggregates | ||
description: |- | ||
Aggregate table used to track desktop installation and retention 28 days later | ||
owners: | ||
- [email protected] | ||
labels: | ||
incremental: true | ||
owner1: kwindau | ||
table_type: aggregate | ||
shredder_mitigation: true | ||
scheduling: | ||
dag_name: bqetl_dsktp_acqstn_fnnl | ||
date_partition_offset: -29 | ||
date_partition_parameter: fsd | ||
parameters: | ||
- submission_date:DATE:{{ds}} | ||
bigquery: | ||
time_partitioning: | ||
type: day | ||
field: first_seen_date | ||
require_partition_filter: false | ||
expiration_days: null | ||
range_partitioning: null | ||
references: {} |
64 changes: 64 additions & 0 deletions
64
...-fx-data-shared-prod/telemetry_derived/desktop_acquisition_funnel_aggregates_v1/query.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
SELECT | ||
first_seen_date, | ||
country_code, | ||
channel, | ||
os, | ||
os_version, | ||
distribution_id, | ||
attribution_ua, | ||
CASE | ||
WHEN attribution_source = "%2528not%2Bset%2529" | ||
THEN "(not set)" | ||
ELSE attribution_source | ||
END AS attribution_source, | ||
CASE | ||
WHEN attribution_medium = "%2528not%2Bset%2529" | ||
THEN "(not set)" | ||
ELSE attribution_medium | ||
END AS attribution_medium, | ||
CASE | ||
WHEN attribution_campaign = "%2528not%2Bset%2529" | ||
THEN "(not set)" | ||
ELSE attribution_campaign | ||
END AS attribution_campaign, | ||
CASE | ||
WHEN attribution_content = "%2528not%2Bset%2529" | ||
THEN "(not set)" | ||
ELSE attribution_content | ||
END AS attribution_content, | ||
CASE | ||
WHEN attribution_experiment = "%2528not%2Bset%2529" | ||
THEN "(not set)" | ||
ELSE attribution_experiment | ||
END AS attribution_experiment, | ||
CASE | ||
WHEN attribution_dlsource = "%2528not%2Bset%2529" | ||
THEN "(not set)" | ||
ELSE attribution_dlsource | ||
END AS attribution_dlsource, | ||
startup_profile_selection_reason, | ||
COUNT(client_id) AS cohort, | ||
COUNTIF(activated) AS activated, | ||
COUNTIF(returned_second_day) AS returned_second_day, | ||
COUNTIF(qualified_second_day) AS qualified_second_day, | ||
COUNTIF(retained_week4) AS retained_week4, | ||
COUNTIF(qualified_week4) AS qualified_week4 | ||
FROM | ||
`moz-fx-data-shared-prod.telemetry_derived.clients_first_seen_28_days_later_v1` | ||
WHERE | ||
first_seen_date = @fsd | ||
GROUP BY | ||
first_seen_date, | ||
country_code, | ||
channel, | ||
os, | ||
os_version, | ||
distribution_id, | ||
attribution_source, | ||
attribution_ua, | ||
attribution_medium, | ||
attribution_campaign, | ||
attribution_content, | ||
attribution_experiment, | ||
attribution_dlsource, | ||
startup_profile_selection_reason |
81 changes: 81 additions & 0 deletions
81
...x-data-shared-prod/telemetry_derived/desktop_acquisition_funnel_aggregates_v1/schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
fields: | ||
- mode: NULLABLE | ||
name: first_seen_date | ||
type: DATE | ||
description: First Seen Date | ||
- name: country_code | ||
type: STRING | ||
mode: NULLABLE | ||
description: Country Code | ||
- name: channel | ||
type: STRING | ||
mode: NULLABLE | ||
description: Channel | ||
- name: os | ||
type: STRING | ||
mode: NULLABLE | ||
description: Operating System | ||
- name: os_version | ||
type: NUMERIC | ||
mode: NULLABLE | ||
description: Operating System Version | ||
- name: distribution_id | ||
type: STRING | ||
mode: NULLABLE | ||
description: Distribution ID | ||
- name: attribution_ua | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution User Agent | ||
- name: attribution_source | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution Source | ||
- name: attribution_medium | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution Medium | ||
- name: attribution_campaign | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution Campaign | ||
- name: attribution_content | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution Content | ||
- name: attribution_experiment | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution Experiment | ||
- name: attribution_dlsource | ||
type: STRING | ||
mode: NULLABLE | ||
description: Attribution Download Source | ||
- name: startup_profile_selection_reason | ||
type: STRING | ||
mode: NULLABLE | ||
description: Startup Profile Selection Reason | ||
- name: cohort | ||
type: INTEGER | ||
mode: NULLABLE | ||
description: Cohort | ||
- name: activated | ||
type: INTEGER | ||
mode: NULLABLE | ||
description: Activated | ||
- name: returned_second_day | ||
type: INTEGER | ||
mode: NULLABLE | ||
description: Returned Second Day | ||
- name: qualified_second_day | ||
type: INTEGER | ||
mode: NULLABLE | ||
description: Qualified Second Day | ||
- name: retained_week4 | ||
type: INTEGER | ||
mode: NULLABLE | ||
description: Retained Week 4 | ||
- name: qualified_week4 | ||
type: INTEGER | ||
mode: NULLABLE | ||
description: Qualified Week 4 |
ae8150f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Integration report for "DENG-6883 & DENG-6884 - Create desktop_acquisition_funnel_aggregates table (#6780)"
sql.diff
Click to expand!
Link to full diff