Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: None
    • Labels:
      None

      Description

      If schema for a field of type 'bag' is partially defined then FLATTEN() incorrectly eliminates the field and throws an error.
      Consider the following example:-

      A = LOAD 'sample' using PigStorage() as (first:chararray, second:chararray, ladder:bag{});
      B = FOREACH A GENERATE first,FLATTEN(ladder) as third,second;
      C = GROUP B by (first,third);

      This throws the error
      ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1000: Error during parsing. Invalid alias: third in

      {first: chararray,second: chararray}

        Issue Links

          Activity

          Ankur created issue -
          Olga Natkovich made changes -
          Field Original Value New Value
          Assignee Daniel Dai [ daijy ]
          Alan Gates made changes -
          Link This issue relates to PIG-998 [ PIG-998 ]
          Olga Natkovich made changes -
          Fix Version/s 0.6.0 [ 12314214 ]
          Olga Natkovich made changes -
          Fix Version/s 0.9.0 [ 12315191 ]
          Alan Gates made changes -
          Assignee Daniel Dai [ daijy ] Alan Gates [ alangates ]
          Alan Gates made changes -
          Assignee Alan Gates [ alangates ] Daniel Dai [ daijy ]
          Daniel Dai made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Olga Natkovich made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Daniel Dai
              Reporter:
              Ankur
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development