TEIID-2887: fixing the group by clause to use flattened seaction names