I am developing a new UDF for loading Json data. It differs from those
currently available because it tries to construct the supplied nested maps
and arrays as Pig data structures rather than a single flat map.
Anyway, I am sometimes getting this error which I don't understand.
2011-02-05 13:04:46,397 [main] INFO
pig.usenewlogicalplan is set to true. New logical plan will be used.
2011-02-05 13:04:46,426 [main] ERROR org.apache.pig.tools.grunt.Grunt -
ERROR 2042: Error in new logical plan. Try -Dpig.usenewlogicalplan=false.
When I get it I can't really be sure if it is a problem in my UDF, in my
script, or a bug in Pig itself.
Any ideas for what I can do to learn more and perhaps prepare a sensible bug
Incidentally if I put " -Dpig.usenewlogicalplan=false " on the command line
my script then works fine. I just don't understand why it is failing, and
what to do about it. Is the "new logical plan" beta code pushed into