[TEST] fix CumulativeSumTests

This commit is contained in:
Colin Goodheart-Smithe 2015-06-25 15:41:08 +01:00
parent daca05b36e
commit ad5cc6221d
1 changed files with 1 additions and 0 deletions

View File

@ -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();