Skip to content

Commit a8d8512

Browse files
committed
what does it do?!
1 parent 2c188eb commit a8d8512

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-ValuesAggregator.java.st

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ $endif$
269269
blocks[offset] = toBlock(driverContext.blockFactory(), selected);
270270
}
271271

272+
/**
273+
* Builds a {@link Block} with the unique values collected for the {@code #selected}
274+
* groups. This is the implementation of the final and intermediate results of the agg.
275+
*/
272276
Block toBlock(BlockFactory blockFactory, IntVector selected) {
273277
if (values.size() == 0) {
274278
return blockFactory.newConstantNullBlock(selected.getPositionCount());

0 commit comments

Comments
 (0)