You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Olga Natkovich (JIRA)" <ji...@apache.org> on 2008/08/11 20:14:46 UTC

[jira] Updated: (PIG-311) Scripts using CROSS fail in logical to physical translator

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

Olga Natkovich updated PIG-311:
-------------------------------

    Priority: Critical  (was: Major)

> Scripts using CROSS fail in logical to physical translator
> ----------------------------------------------------------
>
>                 Key: PIG-311
>                 URL: https://issues.apache.org/jira/browse/PIG-311
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: types_branch
>            Reporter: Alan Gates
>            Assignee: Shravan Matthur Narayanamurthy
>            Priority: Critical
>             Fix For: types_branch
>
>
> {code}
> a = load 'myfile' as (name, age, gpa);                                                                        
> b = load 'myotherfile' as (name, age, registration, contributions);                                                                         
> c = filter a by age < 19 and gpa < 1.0;                                                                                                                         
> d = filter b by age < 19;                                                                                                                                       
> e = cross c, d;                                                                                                                                                 
> store e into 'outfile';
> {code}
> fails:
> java.io.IOException: Unable to store for alias: e [null]
>     at org.apache.pig.impl.plan.OperatorPlan.checkInPlan(OperatorPlan.java:252)
>     at org.apache.pig.impl.plan.OperatorPlan.connect(OperatorPlan.java:140)
>     at org.apache.pig.impl.physicalLayer.plans.PhysicalPlan.connect(PhysicalPlan.java:77)
>     at org.apache.pig.impl.logicalLayer.LogToPhyTranslationVisitor.visit(LogToPhyTranslationVisitor.java:859)
>     at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:101)
>     at org.apache.pig.impl.logicalLayer.LOStore.visit(LOStore.java:36)
>     at org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:68)
>     at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:51)
>     at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:229)
>     at org.apache.pig.PigServer.compilePp(PigServer.java:556)
>     at org.apache.pig.PigServer.execute(PigServer.java:482)
>     at org.apache.pig.PigServer.store(PigServer.java:324)
>     at org.apache.pig.PigServer.store(PigServer.java:310)
>     at org.apache.pig.tools.grunt.GruntParser.processStore(GruntParser.java:173)
>     at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:317)
>     at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:77)
>     at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:58)
>     at org.apache.pig.Main.main(Main.java:311)
> Caused by: java.lang.NullPointerException
>     ... 18 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.