Skip to content

Commit 446c31e

Browse files
committed
feat: add a new enterprise_classification rule to enterprise_metrics_clients and enterprise_metrics_clients_legacy views
1 parent bf652c4 commit 446c31e

File tree

2 files changed

+10
-0
lines changed
  • sql/moz-fx-data-shared-prod/firefox_desktop

2 files changed

+10
-0
lines changed

sql/moz-fx-data-shared-prod/firefox_desktop/enterprise_metrics_clients/view.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ AS
44
SELECT
55
*,
66
CASE
7+
WHEN app_version_major >= 144
8+
AND normalized_channel = "esr"
9+
AND policies_count > 1
10+
AND distribution_id IS NULL
11+
THEN "enterprise_esr"
712
WHEN normalized_channel = "release"
813
AND ((policies_count > 1) OR (policies_is_enterprise = TRUE))
914
THEN "enterprise_release"

sql/moz-fx-data-shared-prod/firefox_desktop/enterprise_metrics_clients_legacy/view.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ AS
44
SELECT
55
*,
66
CASE
7+
WHEN `mozfun.norm.browser_version_info`(app_version).major_version >= 144
8+
AND normalized_channel = "esr"
9+
AND policies_count > 1
10+
AND distribution_id IS NULL
11+
THEN "enterprise_esr"
712
WHEN normalized_channel = "release"
813
AND ((policies_count > 1) OR (policies_is_enterprise = TRUE))
914
THEN "enterprise_release"

0 commit comments

Comments
 (0)