Bug 1757768: add match_type to contextual services derived dataset (#2897)

* Bug 1757768: add match_type to contextual services derived dataset

* f test
This commit is contained in:
Nan Jiang 2022-06-08 13:52:41 -04:00 коммит произвёл GitHub
Родитель 15e94067f0
Коммит 44399cd7af
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
8 изменённых файлов: 34 добавлений и 1 удалений

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

@ -20,3 +20,4 @@ SELECT
CAST(NULL AS INT64) AS position,
CAST(NULL AS INT64) AS event_count,
CAST(NULL AS INT64) AS user_count,
CAST(NULL AS STRING) AS match_type,

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

@ -19,6 +19,7 @@ WITH combined AS (
'merino'
END
AS provider,
match_type,
FROM
contextual_services.quicksuggest_impression
UNION ALL
@ -42,6 +43,7 @@ WITH combined AS (
'merino'
END
AS provider,
match_type,
FROM
contextual_services.quicksuggest_click
UNION ALL
@ -65,6 +67,8 @@ WITH combined AS (
'contile'
END
AS provider,
-- `match_type` is only available for `quicksuggest_*` tables
NULL AS match_type,
FROM
contextual_services.topsites_impression
UNION ALL
@ -88,6 +92,8 @@ WITH combined AS (
'contile'
END
AS provider,
-- `match_type` is only available for `quicksuggest_*` tables
NULL AS match_type,
FROM
contextual_services.topsites_click
UNION ALL
@ -115,6 +121,8 @@ WITH combined AS (
'contile'
END
AS provider,
-- `match_type` is only available for `quicksuggest_*` tables
NULL AS match_type,
FROM
org_mozilla_firefox.topsites_impression
UNION ALL
@ -140,6 +148,8 @@ WITH combined AS (
'contile'
END
AS provider,
-- `match_type` is only available for `quicksuggest_*` tables
NULL AS match_type,
FROM
org_mozilla_firefox_beta.topsites_impression
UNION ALL
@ -165,6 +175,8 @@ WITH combined AS (
'contile'
END
AS provider,
-- `match_type` is only available for `quicksuggest_*` tables
NULL AS match_type,
FROM
org_mozilla_fenix.topsites_impression
),
@ -204,4 +216,5 @@ GROUP BY
advertiser,
release_channel,
position,
provider
provider,
match_type

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

@ -9,3 +9,4 @@
release_channel: release
position: 1
request_id: "HASH123"
match_type: "firefox-suggest"

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

@ -9,3 +9,4 @@
release_channel: release
position: 1
request_id: "HASH123"
match_type: "firefox-suggest"

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

@ -9,27 +9,32 @@
subdivision1: AZ
advertiser: ad1
release_channel: release
match_type: "firefox-suggest"
position: 1
event_count: 1
user_count: 1
- <<: *base
source: suggest
event_type: click
match_type: "firefox-suggest"
- <<: *base
source: topsites
provider: contile
event_type: click
match_type: null
- <<: *base
source: topsites
provider: contile
event_type: impression
event_count: 3
user_count: 2
match_type: null
- <<: *base
source: topsites
provider: contile
event_type: impression
advertiser: ad2
match_type: null
- &base_mobile
submission_date: "2020-01-01"
source: topsites
@ -40,10 +45,13 @@
subdivision1: NY
advertiser: ad3
release_channel: release
match_type: null
position: 1
event_count: 1
user_count: 1
- <<: *base_mobile
release_channel: beta
match_type: null
- <<: *base_mobile
release_channel: nightly
match_type: null

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

@ -10,6 +10,7 @@
release_channel: release
position: 1
request_id: "HASH123"
match_type: "firefox-suggest"
- <<: *base
context_id: b
- <<: *base

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

@ -10,6 +10,7 @@
release_channel: release
position: 1
request_id: "HASH123"
match_type: "firefox-suggest"
- <<: *base
context_id: b
- <<: *base

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

@ -9,6 +9,7 @@
subdivision1: AZ
advertiser: ad1
release_channel: release
match_type: "firefox-suggest"
position: 1
event_count: 52
user_count: 2
@ -16,17 +17,20 @@
source: topsites
provider: contile
event_type: impression
match_type: null
event_count: 52
user_count: 2
- <<: *base
source: suggest
event_type: click
match_type: "firefox-suggest"
event_count: 1
user_count: 1
- <<: *base
source: topsites
provider: contile
event_type: click
match_type: null
event_count: 1
user_count: 1
- &base_mobile
@ -39,10 +43,13 @@
subdivision1: NY
advertiser: ad3
release_channel: release
match_type: null
position: 1
event_count: 1
user_count: 1
- <<: *base_mobile
release_channel: beta
match_type: null
- <<: *base_mobile
release_channel: nightly
match_type: null