Don't remove dimensions from measurements unless merging results
Change-Id: I7368361d8daf58a19a1a79b656ec7633a5132dba
This commit is contained in:
parent
f9a9d91c38
commit
f9b2208b13
|
@ -192,8 +192,12 @@ public class MeasurementVerticaRepoImpl implements MeasurementRepo {
|
|||
|
||||
Measurements firstMeasurement = results.get(firstDefDimsId);
|
||||
|
||||
// clear dimensions
|
||||
firstMeasurement.setDimensions(new HashMap<String, String>());
|
||||
if (Boolean.TRUE.equals(mergeMetricsFlag) && defDimsIdSet.size() > 1) {
|
||||
|
||||
// Wipe out the dimensions.
|
||||
firstMeasurement.setDimensions(new HashMap<String, String>());
|
||||
|
||||
}
|
||||
|
||||
results.clear();
|
||||
|
||||
|
|
Loading…
Reference in New Issue