Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to active_users_aggregates view #5395

Open
wants to merge 25 commits into
base: main
Choose a base branch
from

Conversation

lucia-vargas-a
Copy link
Contributor

@lucia-vargas-a lucia-vargas-a commented Apr 19, 2024

Update the column names in the view active_users_aggregates. Merge after PR-5396.

Checklist for reviewer:

  • Commits should reference a bug or github issue, if relevant (if a bug is referenced, the pull request should include the bug number in the title).
  • If the PR comes from a fork, trigger integration CI tests by running the Push to upstream workflow and provide the <username>:<branch> of the fork as parameter. The parameter will also show up
    in the logs of the manual-trigger-required-for-fork CI task together with more detailed instructions.
  • If adding a new field to a query, ensure that the schema and dependent downstream schemas have been updated.
  • When adding a new derived dataset, ensure that data is not available already (fully or partially) and recommend extending an existing dataset in favor of creating new ones. Data can be available in the bigquery-etl repository, looker-hub or in looker-spoke-default.

For modifications to schemas in restricted namespaces (see CODEOWNERS):

┆Issue is synchronized with this Jira Task

@lucia-vargas-a lucia-vargas-a marked this pull request as draft April 19, 2024 00:17
@lucia-vargas-a lucia-vargas-a changed the title Changes to active_users_aggregates. Changes to active_users_aggregates view Apr 22, 2024
@dataops-ci-bot

This comment has been minimized.

kwindau and others added 21 commits April 24, 2024 21:26
* Adding a new table (moz-fx-data-shared-prod.firefox_ios_derived.ltv_states_v1) & corresponding view (moz-fx-data-shared-prod.firefox_ios.ltv_states)
#5406)

* DENG-3462 create view on top of clients_last_seen_v2 with new boolean columns is_dau, is_wau, etc

* DENG-3462 remove is_mobile column
* Backfill new table

* update end_date to incorporate new fields
* Add UDFs for extracting campaign info

* Add campaigns table

* Add ad_groups table

* Add schemas

* Uncomment UDFs

* Format sql files

* Reformat UDFs

* Use common most_recent_rec terminology

* Replace 3 UDFs with one

* reformat & fix tests

* Reformat again
* Extract campaign_id and ad_group_id in fac

* Add Android App Campaign Stats table

* Dont rely on fac view

* Reformat
* Added nightly, experiments and 1pct tables
…5386)

* Added deletion date field

---------

Co-authored-by: Chelsey Beck <64881557+chelseybeck@users.noreply.github.com>
* DENG-3471 suppression list from campaign monitor

* Update sql/moz-fx-data-shared-prod/marketing_suppression_list_external/campaign_monitor_suppression_list_v1/metadata.yaml

Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com>

---------

Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com>
* updating create statement

* joining on users table to filter for active and ensuring there is at least one subscription

* joining on users to filter for active

* adding dev subscription group

* removing fxa_id in favor of has_fxa

* bringing in update timestamp for downstream use

* updating formatting and adding filter for active users

* adding filter for one active newsletter

* updating tests

* adding fxa id back to users table to join to products

* updating query

* updating values

* updating tests

* fix test for subscriptions

* changing schema to array

* updating format

* updating to pull in all subscriptions with statuses

* removing create statement

* updating subscriptions query to make it an array and updating associated tests

* updating formatting and comment

---------

Co-authored-by: Leli Schiestl <lschiestl@mozilla.com>
* DENG-3471 suppression list from campaign monitor

* Update sql/moz-fx-data-shared-prod/marketing_suppression_list_external/campaign_monitor_suppression_list_v1/metadata.yaml

Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com>

* after seans coder review

---------

Co-authored-by: Ben Wu <12437227+BenWu@users.noreply.github.com>
* DENG-3511 remove channel from input since no longer required for updated UDF

* DENG-3511 remove channel from input since no longer required for updated UDF
* DENG-3186 new desktop engagement model

* DENG-3186 add distribution ID to eng client V1 query

* DENG-3186 - add distribution ID to the schema.yaml for eng client

* DENG-3186 add distribution ID to the agg table

* DENG-3186 adding locale to both client & agg tables

* DENG-3186 add app_version to client & agg tables

* DENG-3168 move lifecycle stage from engagement agg table to engagement agg view

* DENG-3186 - add new desktop_engagement_client_v1 table to shredder

* DENG-3186 update formatting of config.py

* DENG-3186 switch to get country, os, os version, and build # from clients last seen and remove join to clients daily
* Update Glean generators checks.

* Remove new_profiles check, not required.

* warn or fail depending on range

* Set check to fail if clients are missing, which is an ETL issue.

* Checks fail when difference is higher than 1%.

* Checks fail when difference is higher than 1%.

* Make checks fail on a smaller difference.
* DENG-3471 suppression list from campaign monitor

* status quo

* DENG-3410 Main Suppression List

* adding metadata
@dataops-ci-bot

This comment has been minimized.

@dataops-ci-bot

This comment has been minimized.

@lucia-vargas-a lucia-vargas-a marked this pull request as ready for review May 14, 2024 14:59
@dataops-ci-bot

This comment has been minimized.

@dataops-ci-bot
Copy link

Integration report for "Merge branch 'main' into DENG-2989_update_active_users_view"

sql.diff

Click to expand!
diff -bur --no-dereference --new-file /tmp/workspace/main-generated-sql/sql/moz-fx-data-shared-prod/telemetry/active_users_aggregates/view.sql /tmp/workspace/generated-sql/sql/moz-fx-data-shared-prod/telemetry/active_users_aggregates/view.sql
--- /tmp/workspace/main-generated-sql/sql/moz-fx-data-shared-prod/telemetry/active_users_aggregates/view.sql	2024-05-29 18:27:43.000000000 +0000
+++ /tmp/workspace/generated-sql/sql/moz-fx-data-shared-prod/telemetry/active_users_aggregates/view.sql	2024-05-29 18:27:44.000000000 +0000
@@ -19,11 +19,13 @@
   os_version_major,
   os_version_minor,
   submission_date,
-  language_name,
+  locale,
   dau,
-  weekly_users AS wau,
-  monthly_users AS mau,
-  new_profiles,
+  wau,
+  mau,
+  daily_users,
+  weekly_users,
+  monthly_users,
   uri_count,
   active_hours,
   app_name,
@@ -54,11 +56,13 @@
   os_version_major,
   os_version_minor,
   submission_date,
-  language_name,
+  locale,
   dau,
-  weekly_users AS wau,
-  monthly_users AS mau,
-  new_profiles,
+  wau,
+  mau,
+  daily_users,
+  weekly_users,
+  monthly_users,
   uri_count,
   active_hours,
   app_name,

Link to full diff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants