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

Daniel Dai updated PIG-1725:
----------------------------

    Attachment: PIG-1725-1.patch

> New logical plan: uidOnlySchema bug in LOGenerate
> -------------------------------------------------
>
>                 Key: PIG-1725
>                 URL: https://issues.apache.org/jira/browse/PIG-1725
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.8.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.8.0
>
>         Attachments: PIG-1725-0.patch, PIG-1725-1.patch
>
>
> The following script fail:
> {code}
> a = load '1.txt' as (a0:int, a1, a2:bag{});
> b = foreach a generate a0 as b0, a1 as b1, flatten(a2) as b2:int;
> c = filter b by b0==1;
> d = foreach c generate b0+1, b2;
> dump d;
> {code}
> Error message:
> Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2239: 
> Structure of schema change. Original: null#1:int,null#2:bytearray,null#5:int 
> Now: b0#1:int,b1#114:NULL
>         at 
> org.apache.pig.newplan.logical.relational.LogicalSchema.mergeUid(LogicalSchema.java:364)
>         at 
> org.apache.pig.newplan.logical.relational.LOGenerate.getSchema(LOGenerate.java:170)
>         at 
> org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:89)
>         at 
> org.apache.pig.newplan.logical.relational.LOGenerate.accept(LOGenerate.java:225)
>         at 
> org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
>         at 
> org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:76)
>         at 
> org.apache.pig.newplan.logical.relational.LOForEach.accept(LOForEach.java:71)
>         at 
> org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
>         at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50)
>         at 
> org.apache.pig.newplan.logical.optimizer.SchemaPatcher.transformed(SchemaPatcher.java:43)
>         at 
> org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:112)
>         ... 13 more

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