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

New logical plan: uidOnlySchema bug in LOGenerate

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.8.0
    • impl
    • None
    • Reviewed

    Description

      The following script fail:

      a = load '1.txt' as (a0:int, a1, a2:bag{});
      b = foreach a generate a0 as b0, a1 as b1, flatten(a2) as b2:int;
      c = filter b by b0==1;
      d = foreach c generate b0+1, b2;
      dump d;
      

      Error message:
      Caused by: org.apache.pig.impl.logicalLayer.FrontendException: ERROR 2239: Structure of schema change. Original: null#1:int,null#2:bytearray,null#5:int Now: b0#1:int,b1#114:NULL
      at org.apache.pig.newplan.logical.relational.LogicalSchema.mergeUid(LogicalSchema.java:364)
      at org.apache.pig.newplan.logical.relational.LOGenerate.getSchema(LOGenerate.java:170)
      at org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:89)
      at org.apache.pig.newplan.logical.relational.LOGenerate.accept(LOGenerate.java:225)
      at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
      at org.apache.pig.newplan.logical.optimizer.SchemaResetter.visit(SchemaResetter.java:76)
      at org.apache.pig.newplan.logical.relational.LOForEach.accept(LOForEach.java:71)
      at org.apache.pig.newplan.DependencyOrderWalker.walk(DependencyOrderWalker.java:75)
      at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:50)
      at org.apache.pig.newplan.logical.optimizer.SchemaPatcher.transformed(SchemaPatcher.java:43)
      at org.apache.pig.newplan.optimizer.PlanOptimizer.optimize(PlanOptimizer.java:112)
      ... 13 more

      Attachments

        1. PIG-1725-1.patch
          4 kB
          Daniel Dai
        2. PIG-1725-0.patch
          2 kB
          Daniel Dai

        Activity

          People

            daijy Daniel Dai
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: