Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.10.0, 0.11
    • Fix Version/s: 0.18.0
    • Component/s: None
    • Labels:
      None

      Description

      The following gives an error:

      a = load 'thing' as (x:int);
      b = a; c = join a by x, b by x;
      

      Error:

      2012-04-03 14:02:47,434 [main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Pig script failed to parse: 
      <line 14, column 4> pig script failed to validate: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2225: Projection with nothing to reference!
      

      No issue with the following, however

      a = load 'thing' as (x:int);
      b = foreach a generate *;
      c = join a by x, b by x;
      

      oh and here is the log:

      $ cat pig_1333487146863.log
      Pig Stack Trace
      ---------------
      ERROR 1200: Pig script failed to parse: 
      <line 3, column 4> pig script failed to validate: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2225: Projection with nothing to reference!
      
      Failed to parse: Pig script failed to parse: 
      <line 3, column 4> pig script failed to validate: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2225: Projection with nothing to reference!
      	at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:182)
      	at org.apache.pig.PigServer$Graph.validateQuery(PigServer.java:1566)
      	at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1539)
      	at org.apache.pig.PigServer.registerQuery(PigServer.java:541)
      	at org.apache.pig.tools.grunt.GruntParser.processPig(GruntParser.java:945)
      	at org.apache.pig.tools.pigscript.parser.PigScriptParser.parse(PigScriptParser.java:392)
      	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:190)
      	at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:166)
      	at org.apache.pig.tools.grunt.Grunt.run(Grunt.java:69)
      	at org.apache.pig.Main.run(Main.java:535)
      	at org.apache.pig.Main.main(Main.java:153)
      Caused by: 
      <line 3, column 4> pig script failed to validate: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2225: Projection with nothing to reference!
      	at org.apache.pig.parser.LogicalPlanBuilder.buildJoinOp(LogicalPlanBuilder.java:363)
      	at org.apache.pig.parser.LogicalPlanGenerator.join_clause(LogicalPlanGenerator.java:11441)
      	at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1491)
      	at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:791)
      	at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:509)
      	at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:384)
      	at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:175)
      	... 10 more
      ================================================================================
      

        Activity

        Hide
        olgan Olga Natkovich added a comment -

        Moving to 0.12 as no work has been done so far

        Show
        olgan Olga Natkovich added a comment - Moving to 0.12 as no work has been done so far

          People

          • Assignee:
            Unassigned
            Reporter:
            jcoveney Jonathan Coveney
          • Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:

              Development