We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c188eb commit a8d8512Copy full SHA for a8d8512
x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/aggregation/X-ValuesAggregator.java.st
@@ -269,6 +269,10 @@ $endif$
269
blocks[offset] = toBlock(driverContext.blockFactory(), selected);
270
}
271
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
+ */
276
Block toBlock(BlockFactory blockFactory, IntVector selected) {
277
if (values.size() == 0) {
278
return blockFactory.newConstantNullBlock(selected.getPositionCount());
0 commit comments