-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
18 changed files
with
135 additions
and
244 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 |
---|---|---|
|
@@ -43,9 +43,9 @@ | |
doc_md=docs, | ||
tags=tags, | ||
) as dag: | ||
firefox_desktop_review_checker_clients__v2 = bigquery_etl_query( | ||
task_id="firefox_desktop_review_checker_clients__v2", | ||
destination_table="review_checker_clients_v2", | ||
firefox_desktop_review_checker_clients__v1 = bigquery_etl_query( | ||
task_id="firefox_desktop_review_checker_clients__v1", | ||
destination_table="review_checker_clients_v1", | ||
dataset_id="firefox_desktop_derived", | ||
project_id="moz-fx-data-shared-prod", | ||
owner="[email protected]", | ||
|
@@ -58,9 +58,9 @@ | |
depends_on_past=False, | ||
) | ||
|
||
firefox_desktop_review_checker_events__v2 = bigquery_etl_query( | ||
task_id="firefox_desktop_review_checker_events__v2", | ||
destination_table="review_checker_events_v2", | ||
firefox_desktop_review_checker_events__v1 = bigquery_etl_query( | ||
task_id="firefox_desktop_review_checker_events__v1", | ||
destination_table="review_checker_events_v1", | ||
dataset_id="firefox_desktop_derived", | ||
project_id="moz-fx-data-shared-prod", | ||
owner="[email protected]", | ||
|
@@ -73,9 +73,9 @@ | |
depends_on_past=False, | ||
) | ||
|
||
firefox_desktop_review_checker_microsurvey__v2 = bigquery_etl_query( | ||
task_id="firefox_desktop_review_checker_microsurvey__v2", | ||
destination_table="review_checker_microsurvey_v2", | ||
firefox_desktop_review_checker_microsurvey__v1 = bigquery_etl_query( | ||
task_id="firefox_desktop_review_checker_microsurvey__v1", | ||
destination_table="review_checker_microsurvey_v1", | ||
dataset_id="firefox_desktop_derived", | ||
project_id="moz-fx-data-shared-prod", | ||
owner="[email protected]", | ||
|
@@ -130,7 +130,7 @@ | |
pool="DATA_ENG_EXTERNALTASKSENSOR", | ||
) | ||
|
||
firefox_desktop_review_checker_clients__v2.set_upstream( | ||
firefox_desktop_review_checker_clients__v1.set_upstream( | ||
wait_for_copy_deduplicate_all | ||
) | ||
wait_for_search_derived__search_clients_daily__v8 = ExternalTaskSensor( | ||
|
@@ -145,7 +145,7 @@ | |
pool="DATA_ENG_EXTERNALTASKSENSOR", | ||
) | ||
|
||
firefox_desktop_review_checker_clients__v2.set_upstream( | ||
firefox_desktop_review_checker_clients__v1.set_upstream( | ||
wait_for_search_derived__search_clients_daily__v8 | ||
) | ||
wait_for_telemetry_derived__clients_daily_joined__v1 = ExternalTaskSensor( | ||
|
@@ -160,11 +160,11 @@ | |
pool="DATA_ENG_EXTERNALTASKSENSOR", | ||
) | ||
|
||
firefox_desktop_review_checker_clients__v2.set_upstream( | ||
firefox_desktop_review_checker_clients__v1.set_upstream( | ||
wait_for_telemetry_derived__clients_daily_joined__v1 | ||
) | ||
|
||
firefox_desktop_review_checker_events__v2.set_upstream( | ||
firefox_desktop_review_checker_events__v1.set_upstream( | ||
wait_for_copy_deduplicate_all | ||
) | ||
|
||
|
@@ -180,10 +180,10 @@ | |
pool="DATA_ENG_EXTERNALTASKSENSOR", | ||
) | ||
|
||
firefox_desktop_review_checker_microsurvey__v2.set_upstream( | ||
firefox_desktop_review_checker_microsurvey__v1.set_upstream( | ||
wait_for_clients_first_seen_v2 | ||
) | ||
firefox_desktop_review_checker_microsurvey__v2.set_upstream( | ||
firefox_desktop_review_checker_microsurvey__v1.set_upstream( | ||
wait_for_copy_deduplicate_all | ||
) | ||
|
||
|
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
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
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
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
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
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
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
45 changes: 45 additions & 0 deletions
45
sql/moz-fx-data-shared-prod/firefox_desktop_derived/review_checker_events_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,45 @@ | ||
SELECT | ||
DATE(submission_timestamp) AS submission_date, | ||
client_info.client_id AS client_id, | ||
MAX(CASE WHEN name = 'surface_onboarding_displayed' THEN 1 ELSE 0 END) is_exposed_event, | ||
MAX(CASE WHEN name = 'surface_opt_in_clicked' THEN 1 ELSE 0 END) is_opt_in_event, | ||
MAX(CASE WHEN name = 'surface_displayed' THEN 1 ELSE 0 END) is_surface_displayed, | ||
MAX( | ||
CASE | ||
WHEN name IN ( | ||
'surface_analyze_reviews_none_available_clicked', | ||
'surface_learn_more_clicked', | ||
'surface_no_review_reliability_available', | ||
'surface_not_now_clicked', | ||
'surface_powered_by_fakespot_link_clicked', | ||
'surface_reactivated_button_clicked', | ||
'surface_reanalyze_clicked', | ||
'surface_settings_expand_clicked', | ||
'surface_show_more_reviews_button_clicked', | ||
'surface_show_privacy_policy_clicked', | ||
'surface_show_quality_explainer_clicked', | ||
'surface_show_quality_explainer_url_clicked', | ||
'surface_show_terms_clicked' | ||
) | ||
THEN 1 | ||
ELSE 0 | ||
END | ||
) is_engaged_with_sidebar, | ||
ANY_VALUE(ping_info.experiments) AS experiments, | ||
normalized_channel, | ||
normalized_country_code, | ||
sample_id, | ||
mozfun.norm.truncate_version(client_info.app_display_version, "major") AS os_version, | ||
FROM | ||
`moz-fx-data-shared-prod.firefox_desktop_stable.events_v1` AS e, | ||
UNNEST(events) | ||
WHERE | ||
DATE(submission_timestamp) = @submission_date | ||
AND category = 'shopping' | ||
GROUP BY | ||
DATE(submission_timestamp), | ||
client_info.client_id, | ||
normalized_channel, | ||
normalized_country_code, | ||
sample_id, | ||
os_version |
55 changes: 55 additions & 0 deletions
55
sql/moz-fx-data-shared-prod/firefox_desktop_derived/review_checker_events_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,55 @@ | ||
fields: | ||
- name: submission_date | ||
type: DATE | ||
mode: NULLABLE | ||
- name: client_id | ||
type: STRING | ||
mode: NULLABLE | ||
- name: is_exposed_event | ||
type: INTERGER | ||
mode: NULLABLE | ||
- name: is_opt_in_event | ||
type: INTERGER | ||
mode: NULLABLE | ||
- name: is_surface_displayed | ||
type: INTERGER | ||
mode: NULLABLE | ||
- name: is_engaged_with_sidebar | ||
type: INTERGER | ||
mode: NULLABLE | ||
- name: experiments | ||
type: RECORD | ||
mode: REPEATED | ||
fields: | ||
- name: key | ||
type: STRING | ||
mode: NULLABLE | ||
- name: value | ||
type: RECORD | ||
mode: NULLABLE | ||
fields: | ||
- name: branch | ||
type: STRING | ||
mode: NULLABLE | ||
- name: extra | ||
type: RECORD | ||
mode: NULLABLE | ||
fields: | ||
- name: enrollment_id | ||
type: STRING | ||
mode: NULLABLE | ||
- name: type | ||
type: STRING | ||
mode: NULLABLE | ||
- name: normalized_channel | ||
type: STRING | ||
mode: NULLABLE | ||
- name: normalized_country_code | ||
type: STRING | ||
mode: NULLABLE | ||
- name: sample_id | ||
type: INTEGER | ||
mode: NULLABLE | ||
- name: os_version | ||
type: INTEGER | ||
mode: NULLABLE |
67 changes: 0 additions & 67 deletions
67
sql/moz-fx-data-shared-prod/firefox_desktop_derived/review_checker_events_v2/query.sql
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.