JobLogicalPlan rewritten