@Test
void should_deduplicate_same_aggregators() {

  QuerySpecification querySpec = collect(
      "SELECT AVG(age), AVG(balance), AVG(age) FROM test GROUP BY name");
  assertEquals(
      ImmutableSet.of(
          alias("AVG(age)", aggregate("AVG", qualifiedName("age"))),
          alias("AVG(balance)", aggregate("AVG", qualifiedName("balance")))),
      querySpec.getAggregators());
}