For auto generate an pig script