File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
sql/moz-fx-data-shared-prod/mdn Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ CREATE OR REPLACE VIEW
85
85
JSON_VALUE(event_extra .referrer ) AS page_referrer
86
86
) AS url2,
87
87
STRUCT(
88
- CAST( NULL AS STRING) AS navigator_geo,
88
+ country_codes_v1 . name AS navigator_geo,
89
89
CAST(NULL AS STRING) AS navigator_subscription_type,
90
90
CAST(NULL AS STRING) AS navigator_user_agent,
91
91
CAST(NULL AS STRING) AS navigator_viewport_breakpoint,
@@ -145,6 +145,9 @@ CREATE OR REPLACE VIEW
145
145
is_bot_generated
146
146
FROM
147
147
` moz-fx-data-shared-prod.mdn_fred.events_stream`
148
+ LEFT JOIN
149
+ ` moz-fx-data-shared-prod.static.country_codes_v1` country_codes_v1
150
+ ON country_codes_v1 .code = metadata .geo .country
148
151
WHERE
149
152
event_category = ' glean'
150
153
AND event_name = ' element_click'
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ CREATE OR REPLACE VIEW
60
60
JSON_VALUE(event_extra .referrer ) AS page_referrer
61
61
) AS url2,
62
62
STRUCT(
63
- CAST( NULL AS STRING) AS navigator_geo,
63
+ country_codes_v1 . name AS navigator_geo,
64
64
CAST(NULL AS STRING) AS navigator_subscription_type,
65
65
CAST(NULL AS STRING) AS navigator_user_agent,
66
66
CAST(NULL AS STRING) AS navigator_viewport_breakpoint,
@@ -120,6 +120,9 @@ CREATE OR REPLACE VIEW
120
120
is_bot_generated
121
121
FROM
122
122
` moz-fx-data-shared-prod.mdn_fred.events_stream`
123
+ LEFT JOIN
124
+ ` moz-fx-data-shared-prod.static.country_codes_v1` country_codes_v1
125
+ ON country_codes_v1 .code = metadata .geo .country
123
126
WHERE
124
127
event_category = ' glean'
125
128
AND event_name = ' page_load'
You can’t perform that action at this time.
0 commit comments