ColumnType type = metadata.getColumnType(dbColumnId);
if (ColumnType.DATE.equals(type)) {
DateIntervalType size = calculateDateInterval(cg);
return SQLFactory.column(dbColumnId, cg.getStrategy(), size);
}
<BUG>if (ColumnType.NUMBER.equals(type)) {
throw new IllegalArgumentException("Group by number '" + sourceId + NOT_SUPPORTED);
}</BUG>
if (ColumnType.TEXT.equals(type)) {
throw new IllegalArgumentException("Group by text '" + sourceId + NOT_SUPPORTED);

ColumnType type = metadata.getColumnType(dbColumnId);
if (ColumnType.DATE.equals(type)) {
DateIntervalType size = calculateDateInterval(cg);
return SQLFactory.column(dbColumnId, cg.getStrategy(), size);
}
if (ColumnType.TEXT.equals(type)) {
throw new IllegalArgumentException("Group by text '" + sourceId + NOT_SUPPORTED);
