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

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development