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

Change of behavior in FLATTEN(map)

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In PIG-5085 we changed the behavior of FLATTEN on map.
      (I didn't even know this was even allowed until I saw the following test failure.)

      e2e nightly FOREACH_6 started failing after this change.

                  'num' => 6,
                  'pig' => q\register :FUNCPATH:/testudf.jar;
      a = load ':INPATH:/singlefile/studenttab10k' as (name, age, gpa);
      b = foreach a generate flatten(name) as n, flatten(org.apache.pig.test.udf.evalfunc.CreateMap((chararray)name, gpa)) as m;
      store b into ':OUTPATH:' using org.apache.pig.test.udf.storefunc.StringStore();\,
                  },
      

        Attachments

        1. PIG-5153.0.patch
          0.9 kB
          Ádám Szita

          Activity

            People

            • Assignee:
              szita Ádám Szita
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: