diff --git a/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java b/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java index 65a72bbbc89fd..f6415a43e995b 100644 --- a/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java +++ b/server/src/main/java/org/opensearch/search/optimization/filterrewrite/TreeTraversal.java @@ -124,9 +124,7 @@ public PointValues.Relation compare(byte[] minPackedValue, byte[] maxPackedValue if (!ranges.withinUpperBound(minPackedValue, activeIndex) && iterateRangeEnd(minPackedValue)) { throw new CollectionTerminatedException(); } - - // DOES THIS CONDITION EVER RUN? - + // after the loop, min < upper // cell could be outside [min max] lower if (!ranges.withinLowerBound(maxPackedValue, activeIndex) && iterateRangeEnd(maxPackedValue)) {