fixup! add partition clause to the copy to statement