Skip to content

Commit 5629d4a

Browse files
committed
Use "start" rather than "rootIndex"
1 parent f2c9c08 commit 5629d4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/data/sort/BytesRefBucketedSort.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ public Block toBlock(BlockFactory blockFactory, IntVector selected) {
210210

211211
// If we are in the gathering mode, we need to heapify before sorting.
212212
if (common.inHeapMode(bucket) == false) {
213-
heapify(rootIndex, (int) size);
213+
heapify(start, (int) size);
214214
}
215-
heapSort(rootIndex, (int) size);
215+
heapSort(start, (int) size);
216216

217217
builder.beginPositionEntry();
218218
for (int i = 0; i < size; i++) {

0 commit comments

Comments
 (0)