Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
Signed-off-by: bowenlan-amzn <[email protected]>
  • Loading branch information
bowenlan-amzn committed Jan 7, 2025
1 parent 941a5c2 commit e152a01
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
import java.util.List;
import java.util.function.Supplier;

import org.opensearch.search.query.BitmapIndexQuery;
import org.roaringbitmap.RoaringBitmap;

import static org.hamcrest.Matchers.containsString;
Expand Down Expand Up @@ -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)
);

Expand Down

0 comments on commit e152a01

Please sign in to comment.