Throw exception on not grouping fields with group_by.