hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Kamath (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIG-447) Validation exception when comapring incomparable types in filter
Date Mon, 22 Sep 2008 23:40:44 GMT
Validation exception when comapring incomparable types in filter
----------------------------------------------------------------

                 Key: PIG-447
                 URL: https://issues.apache.org/jira/browse/PIG-447
             Project: Pig
          Issue Type: Bug
            Reporter: Pradeep Kamath


Script which gives error:
{noformat}
grunt> a = load 'st10k' as (name:chararray, age:int, gpa:float);
grunt> b = filter a by $0 == 1;                                 
grunt> explain b;                                               
2008-09-22 16:38:24,286 [main] ERROR org.apache.pig.PigServer - Cannot evaluate output type
of Equal/NotEqual Operator
2008-09-22 16:38:24,289 [main] ERROR org.apache.pig.PigServer - Severe problem found during
validation org.apache.pig.impl.plan.PlanValidationException: An unexpected exception caused
the validation to stop
2008-09-22 16:38:24,296 [main] ERROR org.apache.pig.tools.grunt.GruntParser - java.io.IOException:
Unable to explain alias b [Cannot evaluate output type of Equal/NotEqual OperatorSevere problem
found during validation org.apache.pig.impl.plan.PlanValidationException: An unexpected exception
caused the validation to stop]
        at org.apache.pig.PigServer.compileLp(PigServer.java:693)
        at org.apache.pig.PigServer.compileLp(PigServer.java:631)
        at org.apache.pig.PigServer.explain(PigServer.java:466)
        at org.apache.pig.tools.grunt.GruntParser.processExplain(GruntParser.java:154)
        at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:186)
        at org.apache.pig.tools.grunt.GruntParser.parseContOnError(GruntParser.java:93)
        at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:58)
        at org.apache.pig.Main.main(Main.java:282)
Caused by: org.apache.pig.backend.executionengine.ExecException: Cannot evaluate output type
of Equal/NotEqual OperatorSevere problem found during validation org.apache.pig.impl.plan.PlanValidationException:
An unexpected exception caused the validation to stop
        ... 8 more
Caused by: org.apache.pig.impl.plan.PlanValidationException: An unexpected exception caused
the validation to stop
        at org.apache.pig.impl.plan.PlanValidator.validateSkipCollectException(PlanValidator.java:104)
        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:660)
        ... 7 more
Caused by: org.apache.pig.impl.plan.VisitorException: Cannot evaluate output type of Equal/NotEqual
Operator
        at org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.visit(TypeCheckingVisitor.java:855)
        at org.apache.pig.impl.logicalLayer.LOEqual.visit(LOEqual.java:66)
        at org.apache.pig.impl.logicalLayer.LOEqual.visit(LOEqual.java:29)
        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:2081)
        at org.apache.pig.impl.logicalLayer.validators.TypeCheckingVisitor.visit(TypeCheckingVisitor.java:1629)
        at org.apache.pig.impl.logicalLayer.LOFilter.visit(LOFilter.java:101)
        at org.apache.pig.impl.logicalLayer.LOFilter.visit(LOFilter.java:32)
        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)
        ... 11 more
{noformat}

-- 
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