Skip to content

Commit

Permalink
Fix AggregationNode#producesDistinctRows check
Browse files Browse the repository at this point in the history
Fixes the containsAll check in AggregationNode#producesDistinctRows to
be called on the HashSet instead of on the List.
  • Loading branch information
pettyjamesm committed Sep 13, 2024
1 parent cd7b596 commit 3bb7686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public boolean producesDistinctRows()
return aggregations.isEmpty() &&
!groupingSets.getGroupingKeys().isEmpty() &&
outputs.size() == groupingSets.getGroupingKeys().size() &&
outputs.containsAll(new HashSet<>(groupingSets.getGroupingKeys()));
new HashSet<>(outputs).containsAll(groupingSets.getGroupingKeys());
}

public boolean isDecomposable(Session session, Metadata metadata)
Expand Down

0 comments on commit 3bb7686

Please sign in to comment.