From 8de4f5b38683f7f578694cb3fc2aec8d59d592f3 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Tue, 7 Jan 2025 11:40:42 -0800 Subject: [PATCH] fix ut Signed-off-by: bowenlan-amzn --- .../java/org/opensearch/index/mapper/NumberFieldTypeTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/index/mapper/NumberFieldTypeTests.java b/server/src/test/java/org/opensearch/index/mapper/NumberFieldTypeTests.java index c06371bed9357..c08c6d3821645 100644 --- a/server/src/test/java/org/opensearch/index/mapper/NumberFieldTypeTests.java +++ b/server/src/test/java/org/opensearch/index/mapper/NumberFieldTypeTests.java @@ -76,6 +76,7 @@ import org.opensearch.search.DocValueFormat; import org.opensearch.search.MultiValueMode; import org.opensearch.search.query.BitmapDocValuesQuery; +import org.opensearch.search.query.BitmapIndexQuery; import org.junit.Before; import java.io.ByteArrayInputStream; @@ -962,7 +963,7 @@ public void testBitmapQuery() throws IOException { NumberFieldType ft = new NumberFieldMapper.NumberFieldType("field", NumberType.INTEGER); assertEquals( - new IndexOrDocValuesQuery(NumberType.bitmapIndexQuery("field", r), new BitmapDocValuesQuery("field", r)), + new IndexOrDocValuesQuery(new BitmapIndexQuery("field", r), new BitmapDocValuesQuery("field", r)), ft.bitmapQuery(bitmap) );