Explain followed by Describe throws exception
---------------------------------------------

                 Key: PIG-407
                 URL: https://issues.apache.org/jira/browse/PIG-407
             Project: Pig
          Issue Type: Bug
    Affects Versions: types_branch
            Reporter: Santhosh Srinivasan
            Assignee: Santhosh Srinivasan
             Fix For: types_branch


{code}
A = load '/user/sms/data/student.data' using PigStorage(' ') as (name: 
chararray, age: int, gpa: float);
B = group A by $1;
C = foreach B{ D = order A by $0; generate D; }
describe C;
describe B;
explain C;
describe B;


56335 [main] ERROR org.apache.pig.tools.grunt.GruntParser  - 
java.lang.NullPointerException
        at org.apache.pig.impl.logicalLayer.LOVisitor.visit(LOVisitor.java:121)
        at org.apache.pig.impl.logicalLayer.PlanSetter.visit(PlanSetter.java:58)
        at org.apache.pig.impl.logicalLayer.LOCogroup.visit(LOCogroup.java:262)
        at org.apache.pig.impl.logicalLayer.LOCogroup.visit(LOCogroup.java:39)
        at 
org.apache.pig.impl.plan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:65)
        at 
org.apache.pig.impl.plan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:67)
        at 
org.apache.pig.impl.plan.DepthFirstWalker.walk(DepthFirstWalker.java:50)
        at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:51)
        at org.apache.pig.PigServer.compileLp(PigServer.java:549)
        at org.apache.pig.PigServer.dumpSchema(PigServer.java:285)
        at 
org.apache.pig.tools.grunt.GruntParser.processDescribe(GruntParser.java:149)
        at 
org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:181)
        at 
org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:92)
        at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
        at org.apache.pig.Main.main(Main.java:282)

{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to