code: private void validateGroupByItem(SqlSelect select, SqlNode groupByItem) {
  		final SqlValidatorScope groupByScope = getGroupScope(select);
  		groupByScope.validateExpr(groupByItem);
  	}
docs: Validates an item in the GROUP BY clause of a SELECT statement.
  
  @param select Select statement
  @param groupByItem GROUP BY clause item