Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Pig Wiki" for change 
notification.

The "TuringCompletePig" page has been changed by AlanGates.
http://wiki.apache.org/pig/TuringCompletePig?action=diff&rev1=3&rev2=4

--------------------------------------------------

              Object outfile = new String("result.data");
              while (error != null && (Double)error > 1.0) {
                  PigServer ps = new PigServer();
-                 ps.registerQuery("A = load infile;");
+                 ps.registerQuery("A = load " + infile + ";");
                  ps.registerQuery("B = group A all;");
                  ps.registerQuery("C = foreach B generate 
flatten(doSomeCalculation(A)) as (result, error);");
                  ps.registerQuery("error = foreach C generate error;");

Reply via email to