docs: protected SqlNode getAggregate(SqlSelect select) {
  		SqlNode node = select.getGroup();
  		if (node != null) {
  			return node;
  		}
  		node = select.getHaving();
  		if (node != null) {
  			return node;
  		}
  		return getAgg(select);
  	}