maybe rename method to ensureNonAggregatesInGroupBy