Skip to content
Extraits de code Groupes Projets
Valider 9e86c796 rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

refs #4377 make sure metrics like sum_daily_nb_uniq_visitors (which are...

refs #4377 make sure metrics like sum_daily_nb_uniq_visitors (which are renamed after aggregation) are summed correctly. If period is for instance 2014-04-01,2014-05-01 we will sum two periods. The month of April 2014 and May 1st. The dataTable of the month will already contain the renamed column (as it was aggregated before) whereas May 1st datatable will not contain the renamend column but the original. Both columns cannot be summed therefore and the original column will overwrite the value of the renamed column. Meaning sum_daily_nb_uniq_visitors is in this case always the value of May 1st
parent c04cdb5d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -337,6 +337,12 @@ class ArchiveProcessor
$dataTable = $this->getArchive()->getDataTable($name, $idSubTable = null);
}
if ($dataTable instanceof Map) {
foreach ($dataTable->getDataTables() as $table) {
$this->renameColumnsAfterAggregation($table, $columnsToRenameAfterAggregation);
}
}
$dataTable = $this->getAggregatedDataTableMap($dataTable, $columnsAggregationOperation);
$this->renameColumnsAfterAggregation($dataTable, $columnsToRenameAfterAggregation);
return $dataTable;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter