adjusting the fenix counts (#2837)
This commit is contained in:
Родитель
51374334d4
Коммит
8e0b1e6818
|
@ -51,7 +51,6 @@ glam_sample_counts AS (
|
|||
AND fsc1.metric = fsc2.metric
|
||||
AND fsc1.key = fsc2.key
|
||||
AND fsc1.ping_type = fsc2.ping_type
|
||||
WHERE fsc2.agg_type = 'count'
|
||||
),
|
||||
-- get all the rcords from view_probe_counts and the matching from view_sample_counts
|
||||
ranked_data AS (SELECT
|
||||
|
|
|
@ -65,13 +65,32 @@ scalars_histogram_data AS (
|
|||
SELECT
|
||||
{{ attributes }},
|
||||
metric,
|
||||
key,
|
||||
'' AS key,
|
||||
agg_type,
|
||||
SUM(value) as total_sample
|
||||
FROM
|
||||
all_combos
|
||||
WHERE agg_type = 'summed_histogram'
|
||||
GROUP BY
|
||||
{{ attributes }},
|
||||
metric,
|
||||
key,
|
||||
agg_type
|
||||
|
||||
UNION ALL
|
||||
|
||||
SELECT
|
||||
{{ attributes }},
|
||||
metric,
|
||||
key,
|
||||
agg_type,
|
||||
SUM(value) as total_sample
|
||||
FROM
|
||||
all_combos
|
||||
WHERE agg_type <> 'summed_histogram'
|
||||
GROUP BY
|
||||
{{ attributes }},
|
||||
metric,
|
||||
key,
|
||||
agg_type
|
||||
|
||||
|
|
|
@ -96,6 +96,8 @@ SELECT
|
|||
SUM(value) AS total_sample
|
||||
FROM
|
||||
all_combos
|
||||
WHERE
|
||||
agg_type <> 'summed_histogram'
|
||||
GROUP BY
|
||||
ping_type,
|
||||
os,
|
||||
|
|
Загрузка…
Ссылка в новой задаче