@Test
public void testGlobalAggregationPlan() throws Exception {
String statementString = "select count(name) from users";
Statement statement = SqlParser.createStatement(statementString);
Analysis analysis = analyzer.analyze(statement);
Plan plan = planner.plan(analysis);
Iterator<PlanNode> iterator = plan.iterator();
PlanNode planNode = iterator.next();
assertThat(planNode, instanceOf(CollectNode.class));