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

Cross product on flatten(map) fails with ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.17.0
    • impl
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: