[ https://issues.apache.org/jira/browse/PIG-5209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15952010#comment-15952010 ]
Rohini Palaniswamy commented on PIG-5209: ----------------------------------------- +1 > Cross product on flatten(map) fails with ClassCastException > ----------------------------------------------------------- > > Key: PIG-5209 > URL: https://issues.apache.org/jira/browse/PIG-5209 > Project: Pig > Issue Type: Bug > Components: impl > Reporter: Koji Noguchi > Assignee: Koji Noguchi > Priority: Minor > Attachments: pig-5209-v01.patch > > > This issue started after we added a new flatten on map feature at PIG-5085. > For script like > {code} > B = foreach A GENERATE FLATTEN(map1), FLATTEN(map2); > {code} > it fails with > {noformat} > 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 > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)