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

Daniel Dai resolved PIG-1761.
-----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Review notes:
https://reviews.apache.org/r/163/

Patch committed to both trunk and 0.8 branch.

> New logical plan: Exception when bag dereference in the middle of expression
> ----------------------------------------------------------------------------
>
>                 Key: PIG-1761
>                 URL: https://issues.apache.org/jira/browse/PIG-1761
>             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-1761-1.patch
>
>
> The following script fail:
> {code}
> A = load '1.txt' as (a0:chararray);
> B = foreach A generate UPPER(REGEX_EXTRACT_ALL(a0, '.*@(.*)#.*').$0);
> explain B;
> {code}
> Error message:
> Caused by: java.lang.NullPointerException
>         at 
> org.apache.pig.newplan.ReverseDependencyOrderWalker.walk(ReverseDependencyOrderWalker.java:70)
>         at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50)
>         at 
> org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:104)
>         at 
> org.apache.pig.newplan.logical.relational.LOGenerate.accept(LOGenerate.java:229)
>         at 
> org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
>         at 
> org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:93)
>         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.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:261)
>         ... 12 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