* Issue 177: Add group_by_dimension to the metrics table

* fixing some typos

* test setup

* test setup

* test setup

* Bug 1880095 - Fix group_by_dimension

* delete wrong files
This commit is contained in:
Leli 2024-02-13 19:21:54 +01:00 коммит произвёл GitHub
Родитель 65503ab73d
Коммит 09b64c3c0c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -25,7 +25,7 @@ merged_metrics_{{ data_source }} AS (
submission_date AS population_submission_date,
build_id AS population_build_id,
{% if config.population.group_by_dimension -%}
{{ config.population.group_by_dimension.select_expression }} AS population_{{ config.population.group_by_dimension.name }},
{{ config.population.group_by_dimension.name }} AS population_{{ config.population.group_by_dimension.name }},
{% endif -%}
FROM
population
@ -49,7 +49,7 @@ merged_metrics_{{ data_source }} AS (
AND {{ metrics[0].data_source.build_id_column }} = p.population_build_id
{% endif %}
{% if config.population.group_by_dimension -%}
AND {{ config.population.group_by_dimension.name }} = p.population_{{ config.population.group_by_dimension.name }}
AND {{ config.population.group_by_dimension.select_expression }} = p.population_{{ config.population.group_by_dimension.name }}
{% endif %}
WHERE
{% if config.xaxis.value == "submission_date" %}