Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ WITH
metadata.isp.name
ORDER BY submission_timestamp ASC LIMIT 1
)[OFFSET(0)] AS isp,
ARRAY_AGG(
JSON_VALUE(
metrics.object.glean_attribution_ext.dltoken
) IGNORE NULLS ORDER BY submission_timestamp DESC)[
SAFE_OFFSET(0)
] AS attribution_dltoken
{% endif %}
FROM
`{{ baseline_table }}`
Expand Down Expand Up @@ -196,6 +202,12 @@ _baseline AS (
metadata.isp.name
ORDER BY submission_timestamp ASC LIMIT 1
)[OFFSET(0)] AS isp,
ARRAY_AGG(
JSON_VALUE(
metrics.object.glean_attribution_ext.dltoken
) IGNORE NULLS ORDER BY submission_timestamp DESC)[
SAFE_OFFSET(0)
] AS attribution_dltoken
{% endif %}
FROM
`{{ baseline_table }}`
Expand Down Expand Up @@ -228,6 +240,7 @@ _current AS (
normalized_channel,
normalized_os_version,
isp,
attribution_dltoken,
{% endif %}
FROM
_baseline
Expand Down Expand Up @@ -261,6 +274,7 @@ _previous AS (
normalized_channel,
normalized_os_version,
isp,
attribution_dltoken
{% endif %}
FROM
`{{ first_seen_table }}` fs
Expand Down Expand Up @@ -350,6 +364,12 @@ _current AS (
metadata.isp.name
ORDER BY submission_timestamp ASC LIMIT 1
)[OFFSET(0)] AS isp,
ARRAY_AGG(
JSON_VALUE(
metrics.object.glean_attribution_ext.dltoken
) IGNORE NULLS ORDER BY submission_timestamp DESC)[
SAFE_OFFSET(0)
] AS attribution_dltoken
{% endif %}
FROM
`{{ baseline_table }}`
Expand Down Expand Up @@ -385,6 +405,7 @@ _previous AS (
normalized_channel,
normalized_os_version,
isp,
attribution_dltoken
{% endif %}
FROM
`{{ first_seen_table }}`
Expand Down Expand Up @@ -433,6 +454,7 @@ SELECT
normalized_channel,
normalized_os_version,
isp,
attribution_dltoken,
{% endif %}
FROM _joined
QUALIFY
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,8 @@ fields:
name: isp
type: STRING
description: Internet Service Provider
- mode: NULLABLE
name: attribution_dltoken
type: STRING
description: The most recent, non null download token from glean_attribution_ext.
{% endif %}