JobPhysicalPlan rewritten