GLAM avoid scientific notation for big sample counts (#4647)
* GLAM avoid scientific notation for big sample counts * Cast to bignumeric instead of numeric
This commit is contained in:
Родитель
cc8c5db9ac
Коммит
0bf4c279d6
|
@ -77,9 +77,9 @@ SELECT
|
|||
'' AS key,
|
||||
agg_type,
|
||||
{% if channel == 'release' %}
|
||||
SUM(value) * MAX(sample_mult) as total_sample
|
||||
CAST(SUM(value) * MAX(sample_mult) as BIGNUMERIC) as total_sample
|
||||
{% else %}
|
||||
SUM(value) as total_sample
|
||||
CAST(SUM(value) as BIGNUMERIC) as total_sample
|
||||
{% endif %}
|
||||
FROM
|
||||
all_combos
|
||||
|
@ -98,9 +98,9 @@ SELECT
|
|||
key,
|
||||
agg_type,
|
||||
{% if channel == 'release' %}
|
||||
SUM(value) * MAX(sample_mult) as total_sample
|
||||
CAST(SUM(value) * MAX(sample_mult) as BIGNUMERIC) as total_sample
|
||||
{% else %}
|
||||
SUM(value) as total_sample
|
||||
CAST(SUM(value) as BIGNUMERIC) as total_sample
|
||||
{% endif %}
|
||||
FROM
|
||||
all_combos
|
||||
|
|
|
@ -84,7 +84,7 @@ SELECT
|
|||
CASE
|
||||
WHEN client_agg_type = '' THEN 0
|
||||
ELSE
|
||||
total_sample
|
||||
CAST(total_sample as BIGNUMERIC)
|
||||
END
|
||||
AS total_sample,
|
||||
non_norm_histogram,
|
||||
|
|
Загрузка…
Ссылка в новой задаче