Skip to content

Commit

Permalink
Clarify global aggregation in applyAggregation
Browse files Browse the repository at this point in the history
It was found to be confusing.
  • Loading branch information
findepi committed Oct 18, 2023
1 parent 8400452 commit 8b9f55e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1405,6 +1405,11 @@ default Optional<AggregationApplicationResult<ConnectorTableHandle>> applyAggreg
Map<String, ColumnHandle> assignments,
List<List<ColumnHandle>> groupingSets)
{
// Global aggregation is represented by [[]]
if (groupingSets.isEmpty()) {
throw new IllegalArgumentException("No grouping sets provided");
}

return Optional.empty();
}

Expand Down

0 comments on commit 8b9f55e

Please sign in to comment.