Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3550

Legal expression causing ERROR 2229: Couldn't find matching uid -1 for project

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.11.1
    • Fix Version/s: 0.12.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      --Here is the script the create the problem

      test = load 'test' as (a:long,b:long,c:long);
      testGroup = group test by (a,b);
      bug = FOREACH testGroup {
      temp = filter test by c==0;
      GENERATE MAX(test.c) as c;
      };

      --First issuse: bad schema!
      describe bug;
      --RESULT: bug:

      {a: long,b: long,c: long}

      --SHOULD BE bug:

      {c:long}

      evenWorst = JOIN bug BY c, test BY c;
      STORE evenWorst into 'veryStrangeMessage';
      – Result:
      --[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2229: Couldn't find matching uid -1 for project (Name: Project Type: bytearray Uid: -1 Input: 0 Column: 2)

      ------------LOG
      sh-3.2$ cat pig_1383046750271.log
      Pig Stack Trace
      ---------------
      ERROR 2229: Couldn't find matching uid -1 for project (Name: Project Type: bytearray Uid: -1 Input: 0 Column: 2)

      org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1002: Unable to store alias evenWorst
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1558)
      at org.apache.pig.PigServer.registerQuery(PigServer.java:516)
      at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:991)
      at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:412)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:194)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:170)
      at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
      at org.apache.pig.Main.run(Main.java:538)
      at org.apache.pig.Main.main(Main.java:157)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
      Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2000: Error processing rule LoadTypeCastInserter
      at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:122)
      at org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.compile(HExecutionEngine.java:277)
      at org.apache.pig.PigServer.compilePp(PigServer.java:1322)
      at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1247)
      at org.apache.pig.PigServer.execute(PigServer.java:1239)
      at org.apache.pig.PigServer.access$400(PigServer.java:121)
      at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1553)
      ... 13 more
      Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2229: Couldn't find matching uid -1 for project (Name: Project Type: bytearray Uid: -1 Input: 0 Column: 2)
      at org.apache.pig.newplan.logical.optimizer.ProjectionPatcher$ProjectionRewriter.visit(ProjectionPatcher.java:91)
      at org.apache.pig.newplan.logical.expression.ProjectExpression.accept(ProjectExpression.java:207)
      at org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:64)
      at org.apache.pig.newplan.DepthFirstWalker.walk(DepthFirstWalker.java:53)
      at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:52)
      at org.apache.pig.newplan.logical.optimizer.AllExpressionVisitor.visitAll(AllExpressionVisitor.java:72)
      at org.apache.pig.newplan.logical.optimizer.AllExpressionVisitor.visit(AllExpressionVisitor.java:95)
      at org.apache.pig.newplan.logical.relational.LOJoin.accept(LOJoin.java:174)
      at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
      at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:52)
      at org.apache.pig.newplan.logical.optimizer.ProjectionPatcher.transformed(ProjectionPatcher.java:48)
      at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:113)
      ... 19 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adcohen Adam Cohen
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: