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:
Eduardo Filho 2023-12-04 17:47:50 -05:00 коммит произвёл GitHub
Родитель cc8c5db9ac
Коммит 0bf4c279d6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -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,