Skip to content

Commit 5674046

Browse files
committed
Close stuff (makes unit test pass)
1 parent e50d5b9 commit 5674046

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/blockhash/CategorizeRawBlockHash.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public BitArray seenGroupIds(BigArrays bigArrays) {
6161

6262
@Override
6363
public void close() {
64-
// TODO
64+
evaluator.close();
6565
}
6666

6767
/**
@@ -102,7 +102,9 @@ public Block eval(BytesRefBlock vBlock) {
102102
if (vVector == null) {
103103
return eval(vBlock.getPositionCount(), vBlock);
104104
}
105-
return eval(vBlock.getPositionCount(), vVector).asBlock();
105+
try (IntVector vector = eval(vBlock.getPositionCount(), vVector)) {
106+
return vector.asBlock();
107+
}
106108
}
107109

108110
public IntBlock eval(int positionCount, BytesRefBlock vBlock) {

0 commit comments

Comments
 (0)