Skip to content

Commit 1763f15

Browse files
committed
update comment
1 parent ab5da65 commit 1763f15

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

x-pack/plugin/downsample/src/main/java/org/elasticsearch/xpack/downsample/MetricFieldProducer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public void collect(SortedNumericDoubleValues docValues, IntArrayList docIdBuffe
168168
case sum -> sum.add(value);
169169
// This is the reason why we can't use GaugeMetricFieldProducer
170170
// For downsampled indices aggregate metric double's value count field needs to be summed.
171+
// (Note: not using CompensatedSum here should be ok given that value_count is mapped as long)
171172
case value_count -> count += Math.round(value);
172173
}
173174
}

0 commit comments

Comments
 (0)