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

Cross product on flatten(map) fails with ClassCastException

    XMLWordPrintableJSON

    Details

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

      Description

      This issue started after we added a new flatten on map feature at PIG-5085.

      For script like

      B = foreach A GENERATE FLATTEN(map1), FLATTEN(map2);
      

      it fails with

      Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.apache.pig.data.DataBag
          at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.processPlan(POForEach.java:514)
          at org.apache.pig.backend.hadoop.executionengine.physicalLayer.relationalOperators.POForEach.getNextTuple(POForEach.java:233)
          ... 12 more
      

        Attachments

        1. pig-5209-v01.patch
          6 kB
          Koji Noguchi

          Activity

            People

            • Assignee:
              knoguchi Koji Noguchi
              Reporter:
              knoguchi Koji Noguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: