Skip to content

Commit 1e4a7b8

Browse files
committed
remove assertions (not hold with union types)
1 parent 918e8aa commit 1e4a7b8

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/lucene/read/ValuesSourceReaderOperator.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import java.util.TreeMap;
3232
import java.util.function.IntFunction;
3333
import java.util.function.Supplier;
34-
import java.util.stream.IntStream;
3534

3635
/**
3736
* Operator that extracts doc_values from a Lucene index out of pages that have been produced by {@link LuceneSourceOperator}
@@ -325,17 +324,6 @@ void sanityCheckBlock(Object loader, int expectedPositions, Block block, int fie
325324
+ ")"
326325
);
327326
}
328-
if (fields[field].info.nullsFiltered() && block.mayHaveNulls()) {
329-
assert IntStream.range(0, block.getPositionCount()).noneMatch(block::isNull)
330-
: new AssertionError(
331-
sanityCheckBlockErrorPrefix(loader, block, field)
332-
+ " nullFiltered ["
333-
+ fields[field].info.nullsFiltered()
334-
+ "] but got block instead of a vector: "
335-
+ block
336-
+ "]"
337-
);
338-
}
339327
}
340328

341329
private String sanityCheckBlockErrorPrefix(Object loader, Block block, int field) {

0 commit comments

Comments
 (0)