Skip to content

Commit

Permalink
what does it do?!
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Feb 20, 2025
1 parent 2c188eb commit a8d8512
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ $endif$
blocks[offset] = toBlock(driverContext.blockFactory(), selected);
}

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

0 comments on commit a8d8512

Please sign in to comment.