pub fn is_aggregate_query(select: &SelectStmt) -> bool
Returns true if the SELECT needs the aggregation operator.