hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-1086) Nested sort by * throw exception
Date Wed, 11 Nov 2009 21:58:40 GMT

     [ https://issues.apache.org/jira/browse/PIG-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dai updated PIG-1086:
----------------------------

    Description: 
The following script fail:
A = load '1.txt' as (a0, a1, a2);
B = group A by a0;
C = foreach B { D = order A by *; generate group, 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

  was:
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


> 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 a0;
> C = foreach B { D = order A by *; generate group, 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.


Mime
View raw message