Skip to content

Commit

Permalink
finalise compute
Browse files Browse the repository at this point in the history
  • Loading branch information
sreemanamala committed Apr 15, 2024
1 parent 81202ac commit d9c5070
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ private AppendableRowsAndColumns computeCumulativeAggregates(AggregatorFactory[]
// In such a case the priming of results is not needed
if (rowIdProvider.get() == numRows) {
for (int i = 0; i < aggs.length; i++) {
results[i][resultStorageIndex] = aggs[i].get();
results[i][resultStorageIndex] = aggFactories[i].finalizeComputation(aggs[i].get());
}
++resultStorageIndex;
}
Expand Down Expand Up @@ -555,7 +555,7 @@ private AppendableRowsAndColumns computeReverseCumulativeAggregates(AggregatorFa
// In such a case the priming of results is not needed
if (rowIdProvider.get() < 0) {
for (int i = 0; i < aggs.length; i++) {
results[i][resultStorageIndex] = aggs[i].get();
results[i][resultStorageIndex] = aggFactories[i].finalizeComputation(aggs[i].get());
}
--resultStorageIndex;
}
Expand Down

0 comments on commit d9c5070

Please sign in to comment.