added codegen for tuple datadiff