diff --git a/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java index 147acd8421425..6e20ba61ce60e 100644 --- a/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java +++ b/server/src/test/java/org/opensearch/search/aggregations/bucket/range/RangeAggregatorTests.java @@ -495,29 +495,6 @@ public void testFloatType() throws IOException { ); } - public void testTopLevelFilterQuery() throws IOException { - NumberFieldType fieldType = new NumberFieldType(NumberType.INTEGER.typeName(), NumberType.INTEGER); - String fieldName = fieldType.numberType().typeName(); - Query query = IntPoint.newRangeQuery(fieldName, 5, 20); - - testRewriteOptimizationCase( - fieldType, - new double[][] { { 0.0, 10.0 }, { 10.0, 20.0 } }, - query, - new Number[] { 0.1, 4.0, 9, 11, 12, 19 }, - range -> { - List ranges = range.getBuckets(); - assertEquals(2, ranges.size()); - assertEquals("0.0-10.0", ranges.get(0).getKeyAsString()); - assertEquals(1, ranges.get(0).getDocCount()); - assertEquals("10.0-20.0", ranges.get(1).getKeyAsString()); - assertEquals(3, ranges.get(1).getDocCount()); - assertTrue(AggregationInspectionHelper.hasValue(range)); - }, - false - ); - } - public void testTopLevelRangeQuery() throws IOException { NumberFieldType fieldType = new NumberFieldType(NumberType.INTEGER.typeName(), NumberType.INTEGER); String fieldName = fieldType.numberType().typeName();