{
return new AggregateTemporalExpression(stmt, m, getFunctionName(), args);
}
else
{
return new AggregateNumericExpression(stmt, m, getFunctionName(), args);
}
}
else
{
// What is coming through here?
// Fallback to the type for this aggregate TODO Allow for temporal types
m = getMappingForClass(double.class);
return new AggregateNumericExpression(stmt, m, getFunctionName(), args);
}
}
else
{
// Handle as Subquery "SELECT AVG(expr) FROM tbl"