From eec33df286df23a5fd4f1101685342256a7c6f1c Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Tue, 26 Sep 2023 17:04:56 -0400 Subject: [PATCH] Fixup --- .../src/main/java/org/elasticsearch/compute/data/DocBlock.java | 2 +- .../elasticsearch/compute/operator/topn/TopNOperatorTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {