From 6fbe1f53d71cdf6c1a8043df67125bb18f5f3ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Novotn=C3=BD?= Date: Thu, 12 Dec 2024 16:40:19 +0100 Subject: [PATCH] fix: input arrays are not always sorted --- .../java/io/evitadb/index/bitmap/RoaringBitmapBackedBitmap.java | 1 - 1 file changed, 1 deletion(-) diff --git a/evita_engine/src/main/java/io/evitadb/index/bitmap/RoaringBitmapBackedBitmap.java b/evita_engine/src/main/java/io/evitadb/index/bitmap/RoaringBitmapBackedBitmap.java index 272901a556..cab77f3f8d 100644 --- a/evita_engine/src/main/java/io/evitadb/index/bitmap/RoaringBitmapBackedBitmap.java +++ b/evita_engine/src/main/java/io/evitadb/index/bitmap/RoaringBitmapBackedBitmap.java @@ -54,7 +54,6 @@ static RoaringBitmap fromArray(int... array) { final RoaringBitmapWriter writer = RoaringBitmapWriter .writer() .constantMemory() - .expectedRange(array[0], array[array.length - 1]) .runCompress(false) .get(); writer.addMany(array);