Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenada committed Dec 27, 2024
1 parent b5f657b commit 86c6c91
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -568,15 +568,15 @@ public static void setAggChildKeys(
ImmutableBitSet groupKey,
Aggregate aggRel,
ImmutableBitSet.Builder childKey) {
List<AggregateCall> aggCalls = aggRel.getAggCallList();
final List<AggregateCall> aggCallList = aggRel.getAggCallList();
final List<Integer> groupList = aggRel.getGroupSet().asList();
for (int bit : groupKey) {
if (bit < aggRel.getGroupCount()) {
// group by column
childKey.set(aggRel.getGroupSet().asList().get(bit));
childKey.set(groupList.get(bit));
} else {
// aggregate column -- set a bit for each argument being
// aggregated
AggregateCall agg = aggCalls.get(bit - aggRel.getGroupCount());
// aggregate column -- set a bit for each argument being aggregated
final AggregateCall agg = aggCallList.get(bit - aggRel.getGroupCount());
for (Integer arg : agg.getArgList()) {
childKey.set(arg);
}
Expand Down

0 comments on commit 86c6c91

Please sign in to comment.