//And the aggregators...
aggs2 = new ArrayList<ExprAggregator>() ;
for ( ExprAggregator agg : aggs )
{
Aggregator aggregator = agg.getAggregator() ;
Var v = agg.getVar() ;
// Variable associated with the aggregate
Expr eVar = agg.getAggVar() ; // Not .getExprVar()
Expr eVar2 = ExprTransformer.transform(exprTransform, eVar) ;
if ( eVar != eVar2 )
changed = true ;
// The Aggregator expression
Expr e = aggregator.getExpr() ;
Expr e2 = e ;
if ( e != null ) // Null means "no relevant expression" e.g. COUNT(*)
ExprTransformer.transform(exprTransform, e) ;
if ( e != e2 )
changed = true ;
Aggregator a2 = aggregator.copy(e2) ;
aggs2.add(new ExprAggregator(eVar2.asVar(), a2)) ;
}
OpGroup opGroup2 = opGroup ;
if ( changed )