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

"duplicate uid in schema" error from script that uses multiple FOREACH on same relation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.9.0
    • 0.11
    • None
    • None

    Description

      The following script:

      A = LOAD 'bug.in' AS a:tuple(x:int, y:int);
      B1 = FOREACH A GENERATE a.x, a.y;
      B2 = FOREACH A GENERATE a.x, a.y;
      C = JOIN B1 BY x, B2 by x;

      yields the following error:

      org.apache.pig.impl.plan.PlanValidationException: ERROR 2270: Logical plan invalid state: duplicate uid in schema : B1::x#35:int,B1::y#36:int,B2::x#35:int,B2::y#36:int

      Attachments

        Activity

          People

            Unassigned Unassigned
            pete@gieser.org Pete Gieser
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: