diff --git a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/DocBlock.java b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/DocBlock.java index 88eba0c38a4d8..fcdb33ae19624 100644 --- a/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/DocBlock.java +++ b/x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/DocBlock.java @@ -146,7 +146,7 @@ public Block.Builder mvOrdering(MvOrdering mvOrdering) { @Override public DocBlock build() { - // Pass null for singleSegmentNonDecreasing so we 1calculate it when we first need it. + // Pass null for singleSegmentNonDecreasing so we calculate it when we first need it. return new DocVector(shards.build(), segments.build(), docs.build(), null).asBlock(); } diff --git a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/topn/TopNOperatorTests.java b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/topn/TopNOperatorTests.java index 2b79781789c0e..95f6613d3c0a4 100644 --- a/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/topn/TopNOperatorTests.java +++ b/x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/operator/topn/TopNOperatorTests.java @@ -186,7 +186,7 @@ protected ByteSizeValue smallEnoughToCircuitBreak() { * 775 causes us to blow up while collecting values and 780 doesn't * trip the breaker. So 775 is the max on this range. */ - return ByteSizeValue.ofBytes(775); + return ByteSizeValue.ofBytes(between(1, 775)); } public void testRamBytesUsed() {