From 1d4b37d4df0270d999cf6d1bd5f99b5e73302ef6 Mon Sep 17 00:00:00 2001 From: Finn Carroll Date: Tue, 13 Aug 2024 15:43:16 -0700 Subject: [PATCH] Dup test Signed-off-by: Finn Carroll --- .../bucket/range/RangeAggregatorTests.java | 23 ------------------- 1 file changed, 23 deletions(-) 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();