}
}
// Construct the appropriate aggregation service
boolean hasGroupBy = groupByNodes.length > 0;
AggregationServiceFactoryDesc aggregationServiceFactory = AggregationServiceFactoryFactory.getService(
selectAggregateExprNodes, groupByNodes, havingAggregateExprNodes, orderByAggregateExprNodes, Collections.<ExprAggregateNodeGroupKey>emptyList(), hasGroupBy, evaluatorContextStmt, statementSpec.getAnnotations(), stmtContext.getVariableService(), typeService.getEventTypes().length > 1, false,
statementSpec.getFilterRootNode(), statementSpec.getHavingExprRootNode(),
stmtContext.getAggregationServiceFactoryService(), typeService.getEventTypes(), stmtContext.getMethodResolutionService());
boolean useCollatorSort = false;