Skip to content

Commit

Permalink
Restore Aggregate computeReferences()
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancea committed Nov 27, 2024
1 parent 599b02b commit 3763f74
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,7 @@ public static List<Attribute> output(List<? extends NamedExpression> aggregates)

@Override
protected AttributeSet computeReferences() {
AttributeSet result = Expressions.references(groupings).combine(Expressions.references(aggregates));
for (Expression grouping : groupings) {
if (grouping instanceof Alias) {
result.remove(((Alias) grouping).toAttribute());
}
}
return result;
return computeReferences(aggregates, groupings);
}

public static AttributeSet computeReferences(List<? extends NamedExpression> aggregates, List<? extends Expression> groupings) {
Expand Down

0 comments on commit 3763f74

Please sign in to comment.