File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
sql/moz-fx-data-shared-prod/firefoxdotcom/firefox_whatsnew_summary Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,16 @@ CREATE OR REPLACE VIEW
22 ` moz-fx-data-shared-prod.firefoxdotcom.firefox_whatsnew_summary`
33AS
44SELECT
5+ wns .ga_client_id || " -" || wns .ga_session_id AS visit_identifier,
56 wns.* ,
6- map .english_text
7+ map .english_text ,
8+ s .engaged_session
79FROM
810 ` moz-fx-data-shared-prod.firefoxdotcom_derived.firefox_whatsnew_summary_v2` wns
11+ JOIN
12+ ` moz-fx-data-shared-prod.firefoxdotcom_derived.ga_sessions_v2` s
13+ ON wns .ga_client_id = s .ga_client_id
14+ AND wns .ga_session_id = s .ga_session_id
915LEFT JOIN
1016 (
1117 -- this is an extra safeguard, there should only ever be 1 row per UID & locale
@@ -21,3 +27,5 @@ LEFT JOIN
2127 ) map
2228 ON wns .cta_click_uid = map .data_cta_uid
2329 AND wns .page_location_locale = map .locale
30+ WHERE
31+ REGEXP_CONTAINS(s .ga_client_id || ' -' || s .ga_session_id , r" ^[0-9]+\.{1}[0-9]+\-{1}[0-9]+$" )
You can’t perform that action at this time.
0 commit comments