Description
In local mode, illustrate will work. But if exectype is set to mapreduce, then:
grunt> a = load 'data/test.txt'; grunt> b = filter a by $0 eq 'f2'; grunt> illustrate b; 2008-04-16 00:03:06,512 [main] ERROR org.apache.pig.tools.grunt.GruntParser - java.lang.ClassCastException: org.apache.pig.backend.hadoop.executionengine.HExecutionEngine cannot be cast to org.apache.pig.backend.local.executionengine.LocalExecutionEngine at org.apache.pig.pen.ExGen.GenerateExamples(ExGen.java:61) at org.apache.pig.PigServer.showExamples(PigServer.java:573) at org.apache.pig.PigServer.showExamples(PigServer.java:569) at org.apache.pig.tools.grunt.GruntParser.processIllustrate(GruntParser.java:131) at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:172) at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:72) at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:54) at org.apache.pig.Main.main(Main.java:272)
dump a and dump b work.