Skip to content

Commit

Permalink
HSEARCH-5133 Ask for a double avg
Browse files Browse the repository at this point in the history
  • Loading branch information
fax4ever committed Jun 26, 2024
1 parent a807e2c commit 6abad63
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class ElasticsearchMetricAggregationsIT {
private final AggregationKey<Long> countConverted = AggregationKey.of( "countConverted" );
private final AggregationKey<Long> countDistinctIntegers = AggregationKey.of( "countDistinctIntegers" );
private final AggregationKey<Long> countDistinctConverted = AggregationKey.of( "countDistinctConverted" );
private final AggregationKey<Integer> avgIntegers = AggregationKey.of( "avgIntegers" );
private final AggregationKey<Double> avgIntegers = AggregationKey.of( "avgIntegers" );
private final AggregationKey<String> avgConverted = AggregationKey.of( "avgConverted" );

@BeforeEach
Expand All @@ -62,7 +62,7 @@ public void test_filteringResults() {
.aggregation( countConverted, f -> f.count().field( "converted" ) )
.aggregation( countDistinctIntegers, f -> f.countDistinct().field( "integer" ) )
.aggregation( countDistinctConverted, f -> f.countDistinct().field( "converted" ) )
.aggregation( avgIntegers, f -> f.avg().field( "integer", Integer.class ) )
.aggregation( avgIntegers, f -> f.avg().field( "integer", Double.class ) )
.aggregation( avgConverted, f -> f.avg().field( "converted", String.class ) )
.toQuery();

Expand Down Expand Up @@ -96,7 +96,7 @@ public void test_allResults() {
.aggregation( countConverted, f -> f.count().field( "converted" ) )
.aggregation( countDistinctIntegers, f -> f.countDistinct().field( "integer" ) )
.aggregation( countDistinctConverted, f -> f.countDistinct().field( "converted" ) )
.aggregation( avgIntegers, f -> f.avg().field( "integer", Integer.class ) )
.aggregation( avgIntegers, f -> f.avg().field( "integer", Double.class ) )
.aggregation( avgConverted, f -> f.avg().field( "converted", String.class ) )
.toQuery();

Expand Down

0 comments on commit 6abad63

Please sign in to comment.