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

Search Discussions

  • Pradeep Kamath (JIRA) at Sep 22, 2008 at 11:43 pm
    [ https://issues.apache.org/jira/browse/PIG-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Pradeep Kamath updated PIG-447:
    -------------------------------

    Fix Version/s: types_branch
    Assignee: Pradeep Kamath
    Affects Version/s: types_branch
    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
    Affects Versions: types_branch
    Reporter: Pradeep Kamath
    Assignee: Pradeep Kamath
    Fix For: types_branch


    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.
  • Pradeep Kamath (JIRA) at Sep 23, 2008 at 12:25 am
    [ https://issues.apache.org/jira/browse/PIG-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Pradeep Kamath updated PIG-447:
    -------------------------------

    Attachment: PIG-447.patch

    The issue was with the error message being misleading - corrected error message for incompatible operands in all operators; patch attached.
    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
    Affects Versions: types_branch
    Reporter: Pradeep Kamath
    Assignee: Pradeep Kamath
    Fix For: types_branch

    Attachments: PIG-447.patch


    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.
  • Olga Natkovich (JIRA) at Sep 23, 2008 at 12:53 am
    [ https://issues.apache.org/jira/browse/PIG-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Olga Natkovich resolved PIG-447.
    --------------------------------

    Resolution: Fixed

    patch committed. thanks, pradeep
    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
    Affects Versions: types_branch
    Reporter: Pradeep Kamath
    Assignee: Pradeep Kamath
    Fix For: types_branch

    Attachments: PIG-447.patch


    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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedSep 22, '08 at 11:41p
activeSep 23, '08 at 12:53a
posts4
users1
websitepig.apache.org

1 user in discussion

Olga Natkovich (JIRA): 4 posts

People

Translate

site design / logo © 2022 Grokbase