@Test void can_collect_nested_aggregators_in_select_clause() { QuerySpecification querySpec = collect( "SELECT name, ABS(1 + AVG(age)) FROM test GROUP BY name"); assertEquals( ImmutableSet.of( alias("AVG(age)", aggregate("AVG", qualifiedName("age")))), querySpec.getAggregators()); }
public void collect(QuerySpecificationContext query, String queryString) { query.accept(new QuerySpecificationCollector(queryString)); }
QuerySpecification { public void collect(QuerySpecificationContext query, String queryString) { query.accept(new QuerySpecificationCollector(queryString)); } }
QuerySpecification { public void collect(QuerySpecificationContext query, String queryString) { query.accept(new QuerySpecificationCollector(queryString)); }  }
QuerySpecification { public void collect(QuerySpecificationContext query, String queryString) { query.accept(new QuerySpecificationCollector(queryString)); }  void collect(QuerySpecificationContext query, String queryString); }
QuerySpecification { public void collect(QuerySpecificationContext query, String queryString) { query.accept(new QuerySpecificationCollector(queryString)); }  void collect(QuerySpecificationContext query, String queryString);  }