hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Viraj Bhat (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-518) LOBinCond exception in LogicalPlanValidationExecutor when providing default values for bag
Date Wed, 05 Nov 2008 02:35:44 GMT
LOBinCond  exception in LogicalPlanValidationExecutor when providing default values for bag
-------------------------------------------------------------------------------------------

                 Key: PIG-518
                 URL: https://issues.apache.org/jira/browse/PIG-518
             Project: Pig
          Issue Type: Bug
          Components: impl
    Affects Versions: types_branch
            Reporter: Viraj Bhat
             Fix For: types_branch


The following piece of Pig script, which provides default values for bags {('','')}  when
the COUNT returns 0 fails with the following error. (Note: Files used in this script are enclosed
on this Jira.)
{code}
a = load 'sports_views.txt' as (col1, col2, col3);
b = load 'queries.txt' as (colb1,colb2,colb3);
mycogroup = cogroup a by col1 inner, b by colb1;
mynewalias = foreach mycogroup generate flatten(a), flatten((COUNT(b) > 0L ? b.(colb2,colb3)
: {('','')}));
dump mynewalias
{code}

java.io.IOException: Unable to open iterator for alias: mynewalias [Unable to store for alias:
mynewalias [Can't overwrite cau
se]]
     at java.lang.Throwable.initCause(Throwable.java:320)
     at org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.visit(TypeCheckingVisitor.java:1494)
     at org.apache.pig.impl.logicalLayer.LOBinCond.visit(LOBinCond.java:85)
     at org.apache.pig.impl.logicalLayer.LOBinCond.visit(LOBinCond.java:28)
     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.impl.logicalLayer.validators.TypeCheckingVisitor.checkInnerPlan(TypeCheckingVisitor.java:2345)
     at org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.visit(TypeCheckingVisitor.java:2252)
     at org.apache.pig.impl.logicalLayer.LOForEach.visit(LOForEach.java:121)
     at org.apache.pig.impl.logicalLayer.LOForEach.visit(LOForEach.java:40)
     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.impl.plan.PlanValidator.validateSkipCollectException(PlanValidator.java:101)
     at org.apache.pig.impl.logicalLayer.validators.TypeCheckingValidator.validate(TypeCheckingValidator.java:40)
     at org.apache.pig.impl.logicalLayer.validators.TypeCheckingValidator.validate(TypeCheckingValidator.java:30)
     at org.apache.pig.impl.logicalLayer.validators.LogicalPlanValidationExecutor.validate(LogicalPlanValidationExecutor.java:
79)
     at org.apache.pig.PigServer.compileLp(PigServer.java:684)
     at org.apache.pig.PigServer.compileLp(PigServer.java:655)
     at org.apache.pig.PigServer.store(PigServer.java:433)
     at org.apache.pig.PigServer.store(PigServer.java:421)
     at org.apache.pig.PigServer.openIterator(PigServer.java:384)
     at org.apache.pig.tools.grunt.GruntParser.processDump(GruntParser.java:269)
     at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:178)
     at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:84)
     at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:64)
     at org.apache.pig.Main.main(Main.java:306)
Caused by: java.io.IOException: Unable to store for alias: mynewalias [Can't overwrite cause]
     ... 26 more
Caused by: java.lang.IllegalStateException: Can't overwrite cause
     ... 26 more

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


Mime
View raw message