[TEST] fix CumulativeSumTests
This commit is contained in:
parent
daca05b36e
commit
ad5cc6221d
|
@ -122,6 +122,7 @@ public class CumulativeSumTests extends ElasticsearchIntegrationTest {
|
||||||
.prepareSearch("idx")
|
.prepareSearch("idx")
|
||||||
.addAggregation(
|
.addAggregation(
|
||||||
histogram("histo").field(SINGLE_VALUED_FIELD_NAME).interval(interval)
|
histogram("histo").field(SINGLE_VALUED_FIELD_NAME).interval(interval)
|
||||||
|
.extendedBounds((long) minRandomValue, (long) maxRandomValue)
|
||||||
.subAggregation(sum("sum").field(SINGLE_VALUED_FIELD_NAME))
|
.subAggregation(sum("sum").field(SINGLE_VALUED_FIELD_NAME))
|
||||||
.subAggregation(cumulativeSum("cumulative_sum").setBucketsPaths("sum"))).execute().actionGet();
|
.subAggregation(cumulativeSum("cumulative_sum").setBucketsPaths("sum"))).execute().actionGet();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue