You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (JIRA)" <ji...@apache.org> on 2010/12/10 00:19:02 UTC
[jira] Created: (PIG-1761) New logical plan: Exception when bag
dereference in the middle of expression
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
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.
[jira] Updated: (PIG-1761) New logical plan: Exception when bag
dereference in the middle of expression
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai updated PIG-1761:
----------------------------
Attachment: PIG-1761-1.patch
> 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.
[jira] Resolved: (PIG-1761) New logical plan: Exception when bag
dereference in the middle of expression
Posted by "Daniel Dai (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (PIG-1761) New logical plan: Exception when bag
dereference in the middle of expression
Posted by "Xuefu Zhang (JIRA)" <ji...@apache.org>.
[ 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.