Fix distributed groupBy in q4