Add normalized engine to mobile search daily table (#4696)

* Add normalized engine to mobile search daily table

* Add the view changes
This commit is contained in:
Alekhya 2023-12-14 00:12:34 +05:30 коммит произвёл GitHub
Родитель 32b88e8e4b
Коммит 74487c6724
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2,10 +2,12 @@ CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.search.mobile_search_clients_engines_sources_daily`
AS
SELECT
* EXCEPT (normalized_engine),
* EXCEPT (normalized_engine, normalized_app_name),
`moz-fx-data-shared-prod`.udf.normalize_search_engine(engine) AS normalized_engine,
`mozfun.mobile_search.normalize_app_name`(app_name, os).normalized_app_name AS normalized_app_name,
`mozfun.norm.browser_version_info`(app_version) AS browser_version_info,
search_count AS sap,
`mozfun.mobile_search.normalize_app_name`(app_name, os).normalized_app_name_os
FROM
`moz-fx-data-shared-prod.search_derived.mobile_search_clients_daily_v1`
WHERE

Просмотреть файл

@ -876,6 +876,7 @@ unfiltered_search_clients AS (
ANY_VALUE(sample_id) AS sample_id,
udf.map_mode_last(ARRAY_CONCAT_AGG(experiments)) AS experiments,
SUM(total_uri_count) AS total_uri_count,
CAST(NULL AS STRING) AS normalized_engine
FROM
combined_search_clients
WHERE