@Test void can_collect_alias_in_select_clause() { QuerySpecification querySpec = collect( "SELECT name AS n FROM test GROUP BY n"); assertEquals( ImmutableMap.of("n", qualifiedName("name")), querySpec.getSelectItemsByAlias()); }
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);  }