[ https://issues.apache.org/jira/browse/PIG-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-1086: ---------------------------- Summary: Nested sort by * throw exception (was: Nexted sort by * throw exception) > Nested sort by * throw exception > -------------------------------- > > Key: PIG-1086 > URL: https://issues.apache.org/jira/browse/PIG-1086 > Project: Pig > Issue Type: Bug > Affects Versions: 0.5.0 > Reporter: Daniel Dai > > The following script fail: > a = load '1.txt' as (a0, a1, a2); > b = group a by *; > c = foreach b { d = distinct a; generate d;}; > explain c; > Here is the stack: > Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 > at java.util.ArrayList.get(ArrayList.java:324) > at > org.apache.pig.impl.logicalLayer.schema.Schema.getField(Schema.java:752) > at > org.apache.pig.impl.logicalLayer.LOSort.getSortInfo(LOSort.java:332) > at > org.apache.pig.backend.hadoop.executionengine.physicalLayer.LogToPhyTranslationVisitor.visit(LogToPhyTranslationVisitor.java:1365) > at org.apache.pig.impl.logicalLayer.LOSort.visit(LOSort.java:176) > at org.apache.pig.impl.logicalLayer.LOSort.visit(LOSort.java:43) > at > org.apache.pig.impl.plan.DependencyOrderWalkerWOSeenChk.walk(DependencyOrderWalkerWOSeenChk.java:69) > at > org.apache.pig.backend.hadoop.executionengine.physicalLayer.LogToPhyTranslationVisitor.visit(LogToPhyTranslationVisitor.java:1274) > at > org.apache.pig.impl.logicalLayer.LOForEach.visit(LOForEach.java:130) > at org.apache.pig.impl.logicalLayer.LOForEach.visit(LOForEach.java:45) > at > org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:69) > at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:51) > at > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:234) > at org.apache.pig.PigServer.compilePp(PigServer.java:864) > at org.apache.pig.PigServer.explain(PigServer.java:583) > ... 8 more -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.