rehack a log of the grouping set manipulation code in planner.