You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Pradeep Kamath (JIRA)" <ji...@apache.org> on 2008/09/12 16:31:44 UTC
[jira] Updated: (PIG-407) Explain followed by Describe throws
exception
[ https://issues.apache.org/jira/browse/PIG-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pradeep Kamath updated PIG-407:
-------------------------------
Attachment: PIG-407.patch
Attached patch for resolving the issue. THe reported query now works. All unit tests passed with the patch
> Explain followed by Describe throws exception
> ---------------------------------------------
>
> Key: PIG-407
> URL: https://issues.apache.org/jira/browse/PIG-407
> Project: Pig
> Issue Type: Bug
> Components: impl
> Affects Versions: types_branch
> Reporter: Santhosh Srinivasan
> Assignee: Pradeep Kamath
> Fix For: types_branch
>
> Attachments: PIG-407.patch
>
>
> {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.