Fix acer cohort case statement for search agg desktop (#6132)
* Fix acer cohort case statement for search agg desktop * Fix tests
This commit is contained in:
Родитель
5ed84b29a2
Коммит
61c97ecc0a
|
@ -44,8 +44,8 @@ SELECT
|
|||
SUM(scd.search_with_ads_organic) AS search_with_ads_organic,
|
||||
SUM(scd.unknown) AS unknown,
|
||||
CASE
|
||||
WHEN ac.client_id IS NOT NULL
|
||||
AND distribution_id NOT LIKE '%acer%'
|
||||
WHEN distribution_id IS NULL
|
||||
OR (distribution_id NOT LIKE '%acer%' AND ac.client_id IS NULL)
|
||||
THEN TRUE
|
||||
ELSE FALSE
|
||||
END AS is_acer_cohort
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.5", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "distribution_id": "totally not null", "engine": "google", "is_acer_cohort": false, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 28, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.5", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "engine": "bing", "is_acer_cohort": false, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de","normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 4, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.5", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "engine": "yahoo", "is_acer_cohort": false, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 4, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.6", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "US", "default_search_engine": "google", "engine": "google", "is_acer_cohort": false, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de","normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 4, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "is_acer_cohort": false, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 0, "search_with_ads": 0, "search_with_ads_organic": 0, "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "app_version": "54.0.1", "channel": "release", "client_count": 2, "country": "DE", "default_private_search_engine": "engine1", "default_search_engine": "google", "engine": "yahoo", "is_acer_cohort": false, "is_default_browser": true, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 8, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.5", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "distribution_id": "totally not null", "engine": "google", "is_acer_cohort": true, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 28, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.5", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "engine": "bing", "is_acer_cohort": true, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de","normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 4, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.5", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "engine": "yahoo", "is_acer_cohort": true, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 4, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "addon_version": "0.9.6", "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "US", "default_search_engine": "google", "engine": "google", "is_acer_cohort": true, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de","normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 4, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "app_version": "54.0.1", "channel": "release", "client_count": 1, "country": "DE", "default_search_engine": "google", "is_acer_cohort": true, "is_default_browser": false, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 0, "search_with_ads": 0, "search_with_ads_organic": 0, "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
{"ad_click": 0, "ad_click_organic": 0, "app_version": "54.0.1", "channel": "release", "client_count": 2, "country": "DE", "default_private_search_engine": "engine1", "default_search_engine": "google", "engine": "yahoo", "is_acer_cohort": true, "is_default_browser": true, "is_sap_monetizable": true, "locale": "de", "normalized_default_search_engine": "Google", "normalized_engine": "Other", "organic": 0, "os": "windows", "os_version": "10.0", "policies_is_enterprise": true, "sap": 8, "search_with_ads": 0, "search_with_ads_organic": 0, "source": "urlbar", "submission_date": "2017-01-01", "tagged_follow_on": 0, "tagged_sap": 0, "unknown": 0}
|
||||
|
|
Загрузка…
Ссылка в новой задаче