You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2010/12/10 20:54:00 UTC
[jira] Commented: (PIG-1761) New logical plan: Exception when bag
dereference in the middle of expression
[ https://issues.apache.org/jira/browse/PIG-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12970294#action_12970294 ]
Xuefu Zhang commented on PIG-1761:
----------------------------------
+1
Patch looks good.
> 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.